KEMBAR78
Add missing branch for `is_subtype(TypeType, Overload)` by sterliakov · Pull Request #18975 · python/mypy · GitHub
Skip to content

Conversation

sterliakov
Copy link
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
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
18 checks passed
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