MCPcopy Index your code
hub / github.com/python/cpython / fstring_end

Method fstring_end

Tools/peg_generator/pegen/parser.py:230–237  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

228
229 @memoize
230 def fstring_end(self) -> tokenize.TokenInfo | None:
231 FSTRING_END = getattr(token, "FSTRING_END", None)
232 if not FSTRING_END:
233 return None
234 tok = self._tokenizer.peek()
235 if tok.type == FSTRING_END:
236 return self._tokenizer.getnext()
237 return None
238
239 @memoize
240 def op(self) -> tokenize.TokenInfo | None:

Callers 1

target_atomMethod · 0.80

Calls 2

getnextMethod · 0.80
peekMethod · 0.45

Tested by

no test coverage detected