MCPcopy
hub / github.com/pytest-dev/pytest / expression

Function expression

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

Source from the content-addressed store, hash-verified

164
165
166def expression(s: Scanner) -> ast.Expression:
167 if s.accept(TokenType.EOF):
168 ret: ast.expr = ast.Constant(False)
169 else:
170 ret = expr(s)
171 s.accept(TokenType.EOF, reject=True)
172 return ast.fix_missing_locations(ast.Expression(ret))
173
174
175def expr(s: Scanner) -> ast.expr:

Callers 1

compileMethod · 0.85

Calls 2

exprFunction · 0.85
acceptMethod · 0.80

Tested by

no test coverage detected