We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 908d344 commit 81cd492Copy full SHA for 81cd492
1 file changed
mypy/typeanal.py
@@ -2120,7 +2120,7 @@ def fix_instance(
2120
t.args = tuple(args)
2121
fix_type_var_tuple_argument(t)
2122
if not t.type.has_type_var_tuple_type:
2123
- with state.strict_optional_set(options.strict_optional):
+ with state.strict_optional_set(True):
2124
fixed = expand_type(t, env)
2125
assert isinstance(fixed, Instance)
2126
t.args = fixed.args
0 commit comments