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
Include ambiguous into UninhabitedType identity (#19648)
Fixes#19641, but also reveals a test that was only passing by
coincidence. This inference has never worked correctly:
```python
from typing import Mapping, Never
d: dict[Never, Never]
def run() -> Mapping[str, int]:
return d
```
As discussed, I updated the test to expect failure in that case. We
should only special-case inline collection literals for that, everything
else (including locals) can cause undesired false negatives.
0 commit comments