Closed
Description
mypy 0.910
a: type = tuple[int] # no error
b = tuple[int] # no error
c = tuple[int, int] # no error
error: type = tuple[int, int] # error: Type application has too many types (1 expected)
also on functions attributes:
def foo(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)