[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-04-26 04:35:07 +00:00
parent fbfb4ebf58
commit 58521efcaa
1 changed files with 5 additions and 5 deletions

View File

@ -206,13 +206,13 @@ class Expression:
:param input: The input expression - one line.
"""
astexpr = expression(Scanner(input))
if mark:
for node in ast.walk(astexpr):
#if the node is an identifier, i.e. a mark name
if isinstance(node, ast.Name):
MARK_GEN.verify_mark(node.id[len(IDENT_PREFIX):])
# if the node is an identifier, i.e. a mark name
if isinstance(node, ast.Name):
MARK_GEN.verify_mark(node.id[len(IDENT_PREFIX) :])
code: types.CodeType = compile(
astexpr,
filename="<pytest match expression>",