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 7bb0cdc commit 2a1ab2dCopy full SHA for 2a1ab2d
mypy/checkexpr.py
@@ -3968,6 +3968,8 @@ def apply_type_arguments_to_callable(
3968
tp = get_proper_type(tp)
3969
3970
if isinstance(tp, CallableType):
3971
+ if tp.is_type_obj() and tp.type_object().fullname == "builtins.tuple":
3972
+ return tp
3973
if len(tp.variables) != len(args):
3974
self.msg.incompatible_type_application(len(tp.variables), len(args), ctx)
3975
return AnyType(TypeOfAny.from_error)
0 commit comments