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

Skip to content
Prev Previous commit
Fix after merge
  • Loading branch information
JukkaL committed Apr 22, 2026
commit a5aecfd9bdcb558f55877d6aadf8adea289de72f
2 changes: 1 addition & 1 deletion mypy/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -8373,7 +8373,7 @@ def visit_nonlocal_decl(self, o: NonlocalDecl, /) -> None:
return None

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