Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/dropbox/pyannotate
/ expect
Method
expect
pyannotate_tools/annotations/parse.py:315–319 ·
view source on GitHub ↗
(self, s)
Source
from the content-addressed store, hash-verified
313
return
ClassType(t.text)
314
315
def
expect(self, s):
316
# type: (str) -> None
317
if
self.tokens[self.i].text != s:
318
self.fail()
319
self.i += 1
320
321
def
lookup(self):
322
# type: () -> str
Callers
3
parse
Method · 0.95
parse_type_list
Method · 0.95
parse_type
Method · 0.95
Calls
1
fail
Method · 0.95
Tested by
no test coverage detected