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
Mypy thinks dict[Never, Never] is a subtype of Mapping[str, object] #19641
changed the title [-][caching?] Mypy thinks `dict[Never, Never]` is a subtype of `Mapping[str, object]`[/-][+]Mypy thinks `dict[Never, Never]` is a subtype of `Mapping[str, object]`[/+]on Aug 11, 2025
@sterliakov@ilevkivskyi This was only partially fixed; the caching part is adressed but mypy still incorrectly reveals dict[Never, Never] on master branch.
Activity
[-][caching?] Mypy thinks `dict[Never, Never]` is a subtype of `Mapping[str, object]`[/-][+]Mypy thinks `dict[Never, Never]` is a subtype of `Mapping[str, object]`[/+]Include `ambiguous` into `UninhabitedType` identity (#19648)
randolf-scholz commentedon Sep 19, 2025
@sterliakov @ilevkivskyi This was only partially fixed; the caching part is adressed but
mypystill incorrectly revealsdict[Never, Never]on master branch.https://mypy-play.net/?mypy=master&python=3.12&gist=79b0378f3b9997bc7bc1ffea94a7dc15
But
dict[Never, Never]is not a subtype ofMapping[str, object]...