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

Function and_expr

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

Source from the content-addressed store, hash-verified

151
152
153def and_expr(s: Scanner) -> ast.expr:
154 ret = not_expr(s)
155 while s.accept(TokenType.AND):
156 rhs = not_expr(s)
157 ret = ast.BoolOp(ast.And(), [ret, rhs])
158 return ret
159
160
161def 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