Thanks to visit codestin.com Credit goes to github.com
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 93bc02b commit 2dc89dcCopy full SHA for 2dc89dc
1 file changed
mypy/typeanal.py
@@ -2108,7 +2108,7 @@ def fix_instance(
2108
t.args = tuple(args)
2109
fix_type_var_tuple_argument(t)
2110
if not t.type.has_type_var_tuple_type:
2111
- with state.strict_optional_set(options.strict_optional):
+ with state.strict_optional_set(True):
2112
fixed = expand_type(t, env)
2113
assert isinstance(fixed, Instance)
2114
t.args = fixed.args
0 commit comments