Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a5aecfd

Browse files
committed
Fix after merge
1 parent c8e6416 commit a5aecfd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mypy/checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8373,7 +8373,7 @@ def visit_nonlocal_decl(self, o: NonlocalDecl, /) -> None:
83738373
return None
83748374

83758375
def visit_global_decl(self, o: GlobalDecl, /) -> None:
8376-
if self.options.allow_redefinition_new:
8376+
if self.options.allow_redefinition:
83778377
# Add names to binder, since their types could be widened
83788378
for name in o.names:
83798379
sym = self.globals.get(name)

0 commit comments

Comments
 (0)