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
{{ message }}
Repository navigation
[1.20 regression] unreachable regression with generic Callable #21182
changed the title [-]unreachable regression with generic Callable[/-][+][1.20 regression] unreachable regression with generic Callable[/+]on Apr 7, 2026
Activity
[-]unreachable regression with generic Callable[/-][+][1.20 regression] unreachable regression with generic Callable[/+]hauntsaninja commentedon Apr 9, 2026
Thanks, changes in 1.20 surface a pre-existing deficiency in
is_overlapping_types, will look more...mypy 1.20: There is a bug in the analysis of a check for equality of …
hauntsaninja commentedon Apr 13, 2026
One idea for a fix is this:
This is nice because it obviously solves any other symmetry issues, but maybe it is a bandaid over some deeper issue
hauntsaninja commentedon Apr 13, 2026
Okay, it looks like this is known and we do something similar elsewhere, see e.g. https://github.com/python/mypy/pull/5476/changes#diff-f96a2d6138bc6cdf2a07c4d37f6071cc25c1631afc107e277a28d5b59fc0ef04R3755 so I will open the PR
Fix is_overlapping_types for generic callables
Fix is_overlapping_types for generic callables (#21208)
Fix is_overlapping_types for generic callables (#21208)
Mypy: Removed temporary "type: ignore" that I had to use due to a bug…