You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(π) False positive "error: Type application has too many types (1 expected)" on tuple when annotated as a type or in a TypeAlias with new union syntax (PEP 604)Β #11098
a: type=tuple[int] # no errorb=tuple[int] # no errorc=tuple[int, int] # no errorerror: type=tuple[int, int] # error: Type application has too many types (1 expected)
also on functions attributes:
deffoo(tp: type): ...
foo(tuple[int, int])
also when in a new union syntax type alias:
A=str|tuple[str, str] # error: Type application has too many types (1 expected)