Skip to content

Fix reachability for frozenset and dict view narrowing#21151

Open
hauntsaninja wants to merge 1 commit intopython:masterfrom
hauntsaninja:reachset
Open

Fix reachability for frozenset and dict view narrowing#21151
hauntsaninja wants to merge 1 commit intopython:masterfrom
hauntsaninja:reachset

Conversation

@hauntsaninja
Copy link
Copy Markdown
Collaborator

Fixes #21143 (on the same lines as #20704, i.e. there still exists a deeper fix that could be made)

I also update a comment that is a little out of date since #20863 and code in checkexpr.py that is out of date for modern typeshed

Fixes python#21143 (on the same lines as python#20704)

I also update a comment that is a little out of date since python#20863
and code in checkexpr.py that is out of date for modern typeshed
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[1.20 regression] incorrect reachability for comparisons between set and frozenset

1 participant