Bug Report
Mypy incorrectly treats generic return type inferred from tuple[type[T], ...] as object
To Reproduce
Gist URL
Playground URL
Expected Behavior
Variable is recognized as int | str
Actual Behavior
Mypy error:
Argument 1 to "func_b" has incompatible type "object"; expected "int | str" Mypy(arg-type)
Your Environment
- Mypy version used: 1.19.1
- Python version used: 3.14.0