We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f3e6ec commit 44c8eceCopy full SHA for 44c8ece
1 file changed
mypy/options.py
@@ -226,7 +226,7 @@ def __init__(self) -> None:
226
227
# Allow flexible variable redefinition with an arbitrary type, in different
228
# blocks and and at different nesting levels
229
- self.allow_redefinition_new = False
+ self.allow_redefinition_new = True
230
231
# Prohibit equality, identity, and container checks for non-overlapping types.
232
# This makes 1 == '1', 1 in ['1'], and 1 is '1' errors.
0 commit comments