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
A should be inferred identically as B, with no errors.
Actual Behavior
mypy claims tuple receives too many type arguments.
repro-too-many-types.py:5: error: Type application has too many types (1 expected) [misc]
A = tuple[int, int] | Fraction
^
Found 1 error in 1 file (checked 1 source file)
Bug Report
False positive for type application of builtin
tuple
when using pipe-syntax unions.To Reproduce
Type check this code (mypy playground):
Expected Behavior
A
should be inferred identically asB
, with no errors.Actual Behavior
mypy claims
tuple
receives too many type arguments.Your Environment
mypy.ini
(and other config files):The text was updated successfully, but these errors were encountered: