Skip to content

Add missing branch for is_subtype(TypeType, Overload)#18975

Merged
hauntsaninja merged 2 commits into
python:masterfrom
sterliakov:bugfix/gh-18974-overload-subtype
Apr 26, 2025
Merged

Add missing branch for is_subtype(TypeType, Overload)#18975
hauntsaninja merged 2 commits into
python:masterfrom
sterliakov:bugfix/gh-18974-overload-subtype

Conversation

@sterliakov

Copy link
Copy Markdown
Collaborator

Fixes #18974. This simply adds a missed branch - we do support is_subtype(Overload, TypeType) but not another type order.

@github-actions

Copy link
Copy Markdown
Contributor

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

@hauntsaninja hauntsaninja merged commit 7b4f631 into python:master Apr 26, 2025
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.

Expression is of type "type[int]", not "type[int]" when using assert_type and TypeAlias

2 participants