Bug Report
Blah[()] works sometimes when Blah[Unpack[tuple[()]]] doesn't and that doesn't make sense.
To Reproduce
fromtypingimportGeneric, TypeVarTuple, UnpackTs=TypeVarTuple("Ts")
classBlah(Generic[Unpack[Ts]]):
passx: Blah[()] # worksy: Blah[Unpack[tuple[()]]] # E: Missing type parameters for generic type "Blah[()]"Expected Behavior
Both should work.
Actual Behavior
Only first works.
Your Environment
Checked on mypy playground.
- Mypy version used: v1.14
- Mypy command-line flags: strict
- Mypy configuration options from
mypy.ini (and other config files): N/A - Python version used: 3.12
Bug Report
Blah[()]works sometimes whenBlah[Unpack[tuple[()]]]doesn't and that doesn't make sense.To Reproduce
Expected Behavior
Both should work.
Actual Behavior
Only first works.
Your Environment
Checked on mypy playground.
mypy.ini(and other config files): N/A