Skip to content

Commit 44c8ece

Browse files
committed
allowredefnew
1 parent 5f3e6ec commit 44c8ece

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mypy/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def __init__(self) -> None:
226226

227227
# Allow flexible variable redefinition with an arbitrary type, in different
228228
# blocks and and at different nesting levels
229-
self.allow_redefinition_new = False
229+
self.allow_redefinition_new = True
230230

231231
# Prohibit equality, identity, and container checks for non-overlapping types.
232232
# This makes 1 == '1', 1 in ['1'], and 1 is '1' errors.

0 commit comments

Comments
 (0)