MCPcopy Create free account
hub / github.com/pytest-dev/pytest / expression

Function expression

src/_pytest/mark/expression.py:136–142  ·  view source on GitHub ↗
(s: Scanner)

Source from the content-addressed store, hash-verified

134
135
136def expression(s: Scanner) -> ast.Expression:
137 if s.accept(TokenType.EOF):
138 ret: ast.expr = ast.NameConstant(False)
139 else:
140 ret = expr(s)
141 s.accept(TokenType.EOF, reject=True)
142 return ast.fix_missing_locations(ast.Expression(ret))
143
144
145def expr(s: Scanner) -> ast.expr:

Callers 1

compileMethod · 0.85

Calls 2

exprFunction · 0.85
acceptMethod · 0.80

Tested by

no test coverage detected