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

Method pop_string

Lib/_pyrepl/_module_completer.py:504–508  ·  view source on GitHub ↗
(self, string: str)

Source from the content-addressed store, hash-verified

502 return tok.string == string
503
504 def pop_string(self, string: str) -> str:
505 tok = self.pop()
506 if tok.string != string:
507 raise ParseError('pop_string')
508 return tok.string
509
510 def pop(self) -> TokenInfo:
511 if not self:

Callers 3

parse_from_importMethod · 0.80
parse_fromMethod · 0.80

Calls 2

popMethod · 0.95
ParseErrorClass · 0.70

Tested by

no test coverage detected