[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
8bb493b4f8
commit
e97aec872e
|
@ -959,7 +959,9 @@ class AssertionRewriter(ast.NodeVisitor):
|
||||||
|
|
||||||
# Clear temporary variables by setting them to None.
|
# Clear temporary variables by setting them to None.
|
||||||
if self.variables:
|
if self.variables:
|
||||||
variables: List[ast.expr] = [ast.Name(name, ast.Store()) for name in self.variables]
|
variables: List[ast.expr] = [
|
||||||
|
ast.Name(name, ast.Store()) for name in self.variables
|
||||||
|
]
|
||||||
clear = ast.Assign(variables, ast.Constant(None))
|
clear = ast.Assign(variables, ast.Constant(None))
|
||||||
self.statements.append(clear)
|
self.statements.append(clear)
|
||||||
# Fix locations (line numbers/column offsets).
|
# Fix locations (line numbers/column offsets).
|
||||||
|
|
Loading…
Reference in New Issue