Skip to content

Commit 2a1ab2d

Browse files
committed
Extract fix from #14181
1 parent 7bb0cdc commit 2a1ab2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mypy/checkexpr.py

+2
Original file line numberDiff line numberDiff line change
@@ -3968,6 +3968,8 @@ def apply_type_arguments_to_callable(
39683968
tp = get_proper_type(tp)
39693969

39703970
if isinstance(tp, CallableType):
3971+
if tp.is_type_obj() and tp.type_object().fullname == "builtins.tuple":
3972+
return tp
39713973
if len(tp.variables) != len(args):
39723974
self.msg.incompatible_type_application(len(tp.variables), len(args), ctx)
39733975
return AnyType(TypeOfAny.from_error)

0 commit comments

Comments
 (0)