Can't alias a union of tuples #14132
Labels
bug
mypy got something wrong
topic-pep-585
PEP 585 (builtin generics)
topic-pep-604
PEP 604 (union | operator)
Bug Report
When I create a type alias with a union of two tuple types, I get an error about the tuple type being applied to too many generic arguments.
To Reproduce
https://mypy-play.net/?mypy=latest&python=3.10&gist=f2a322b4ac47de32fe0d3c06a2fa6fc8
Expected Behavior
The above program should type check correctly and define an alias
Actual Behavior
Your Environment
The text was updated successfully, but these errors were encountered: