Enable lint PGH004 - Use specific rule codes when using noqa

This commit is contained in:
Ran Benita
2024-02-09 11:14:36 +02:00
parent d1ee6d154f
commit a182e10b06
8 changed files with 9 additions and 8 deletions

View File

@@ -1006,7 +1006,7 @@ class AssertionRewriter(ast.NodeVisitor):
if i:
fail_inner: List[ast.stmt] = []
# cond is set in a prior loop iteration below
self.expl_stmts.append(ast.If(cond, fail_inner, [])) # noqa
self.expl_stmts.append(ast.If(cond, fail_inner, [])) # noqa: F821
self.expl_stmts = fail_inner
# Check if the left operand is a ast.NamedExpr and the value has already been visited
if (