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

Function and_expr

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

Source from the content-addressed store, hash-verified

181
182
183def and_expr(s: Scanner) -> ast.expr:
184 ret = not_expr(s)
185 while s.accept(TokenType.AND):
186 rhs = not_expr(s)
187 ret = ast.BoolOp(ast.And(), [ret, rhs])
188 return ret
189
190
191def not_expr(s: Scanner) -> ast.expr:

Callers 1

exprFunction · 0.85

Calls 2

not_exprFunction · 0.85
acceptMethod · 0.80

Tested by

no test coverage detected