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 433ca09 commit 54c0fb2Copy full SHA for 54c0fb2
mypy/typeanal.py
@@ -1717,9 +1717,10 @@ def fix_instance(
1717
env[tv.id] = arg
1718
t.args = tuple(args)
1719
fix_type_var_tuple_argument(t)
1720
- fixed = expand_type(t, env)
1721
- assert isinstance(fixed, Instance)
1722
- t.args = fixed.args
+ if not t.type.has_type_var_tuple_type:
+ fixed = expand_type(t, env)
+ assert isinstance(fixed, Instance)
1723
+ t.args = fixed.args
1724
1725
min_tv_count = sum(tv.has_default() is False for tv in t.type.defn.type_vars)
1726
if arg_count != 0 and not (min_tv_count <= arg_count <= max_tv_count):
0 commit comments