Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2a1ab2d

Browse files
committed
Extract fix from#14181
1 parent7bb0cdc commit2a1ab2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎mypy/checkexpr.py‎

Lines changed: 2 additions & 0 deletions
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
ifisinstance(tp,CallableType):
3971+
iftp.is_type_obj()andtp.type_object().fullname=="builtins.tuple":
3972+
returntp
39713973
iflen(tp.variables)!=len(args):
39723974
self.msg.incompatible_type_application(len(tp.variables),len(args),ctx)
39733975
returnAnyType(TypeOfAny.from_error)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp