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
main.py:15: error: Incompatible types in assignment (expression has type "list[object]", variable has type "list[Callable[..., Any]]") [assignment]
main.py:20: error: Incompatible types in assignment (expression has type "list[object]", variable has type "list[Callable[..., Any]]") [assignment]
Found 2 errors in 1 file (checked 1 source file)
Your Environment
Mypy version used: 1.15.0, also observed on 1.14.0.
Python version used: 3.13, observed as far back as 3.9 locally.
See mypy-play.net repro for any other environment questions.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Bug Report
Combining iterables of
Callable
classes fails type checking. Initially observed in PyTorch, see https://github.com/pytorch/pytorch/pull/153558/files#diff-f6db1b80859c6471ce6e5eb1fc0e31ec094d550e328eeec49076fd346439de91R88To Reproduce
https://mypy-play.net/?mypy=latest&python=3.13&gist=f51186b431defd72652a9dd1c7ca0b48
Expected Behavior
All assignments in the repro should validate.
Actual Behavior
Your Environment
The text was updated successfully, but these errors were encountered: