Skip to content

Commit 69fd839

Browse files
committed
TEMPORARY: Enable --allow-redefinition-new and --local-partial-types
This lets us see the impact on mypy primer.
1 parent daf9c75 commit 69fd839

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/options.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def __init__(self) -> None:
222222

223223
# Allow flexible variable redefinition with an arbitrary type, in different
224224
# blocks and and at different nesting levels
225-
self.allow_redefinition_new = False
225+
self.allow_redefinition_new = True
226226

227227
# Prohibit equality, identity, and container checks for non-overlapping types.
228228
# This makes 1 == '1', 1 in ['1'], and 1 is '1' errors.
@@ -361,7 +361,7 @@ def __init__(self) -> None:
361361
self.dump_deps = False
362362
self.logical_deps = False
363363
# If True, partial types can't span a module top level and a function
364-
self.local_partial_types = False
364+
self.local_partial_types = True
365365
# Some behaviors are changed when using Bazel (https://bazel.build).
366366
self.bazel = False
367367
# If True, export inferred types for all expressions as BuildResult.types

0 commit comments

Comments
 (0)