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

Method inputs

Tools/cases_generator/parsing.py:415–427  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

413 raise self.make_syntax_error("Expected stack effect")
414
415 def inputs(self) -> list[InputEffect] | None:
416 # input (',' input)*
417 here = self.getpos()
418 if inp := self.input():
419 inp = cast(InputEffect, inp)
420 near = self.getpos()
421 if self.expect(lx.COMMA):
422 if rest := self.inputs():
423 return [inp] + rest
424 self.setpos(near)
425 return [inp]
426 self.setpos(here)
427 return None
428
429 @contextual
430 def input(self) -> InputEffect | None:

Callers 1

io_effectMethod · 0.95

Calls 5

inputMethod · 0.95
expectMethod · 0.95
castFunction · 0.90
getposMethod · 0.45
setposMethod · 0.45

Tested by

no test coverage detected