Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support type aliases, NamedTuple and TypedDict in constrained TypeVar defaults #18884

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sterliakov
Copy link
Collaborator

@sterliakov sterliakov commented Apr 5, 2025

Fixes #18862. Fixes #17686.

This comment has been minimized.

@sterliakov sterliakov marked this pull request as ready for review April 5, 2025 01:55
@bzoracler
Copy link
Contributor

Thank you, I tried your changes locally and I believe it also fixes #17686.

@sterliakov
Copy link
Collaborator Author

Missed that one, thanks!

Copy link
Contributor

github-actions bot commented Apr 5, 2025

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

@sterliakov sterliakov changed the title Support type aliases in TypeVar defaults Support type aliases, NamedTuple and TypedDict in constrained TypeVar defaults Apr 6, 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
2 participants