[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-05-18 13:53:02 +00:00
parent 8bb493b4f8
commit e97aec872e
1 changed files with 3 additions and 1 deletions

View File

@ -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).