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

Method io_effect

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

Source from the content-addressed store, hash-verified

403 return None
404
405 def io_effect(self) -> tuple[list[InputEffect], list[OutputEffect]]:
406 # '(' [inputs] '--' [outputs] ')'
407 if self.expect(lx.LPAREN):
408 inputs = self.inputs() or []
409 if self.expect(lx.MINUSMINUS):
410 outputs = self.outputs() or []
411 if self.expect(lx.RPAREN):
412 return inputs, outputs
413 raise self.make_syntax_error("Expected stack effect")
414
415 def inputs(self) -> list[InputEffect] | None:
416 # input (',' input)*

Callers 2

inst_headerMethod · 0.95
pseudo_defMethod · 0.95

Calls 4

expectMethod · 0.95
inputsMethod · 0.95
outputsMethod · 0.95
make_syntax_errorMethod · 0.95

Tested by

no test coverage detected