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

Method fstring_start

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

Source from the content-addressed store, hash-verified

208
209 @memoize
210 def fstring_start(self) -> tokenize.TokenInfo | None:
211 FSTRING_START = getattr(token, "FSTRING_START", None)
212 if not FSTRING_START:
213 return None
214 tok = self._tokenizer.peek()
215 if tok.type == FSTRING_START:
216 return self._tokenizer.getnext()
217 return None
218
219 @memoize
220 def fstring_middle(self) -> tokenize.TokenInfo | None:

Callers 1

target_atomMethod · 0.80

Calls 2

getnextMethod · 0.80
peekMethod · 0.45

Tested by

no test coverage detected