-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[1.11 Regression] partial
plugin doesn't respect TypeVar bounds when deciding if something can be passed to partial
#17646
Labels
Comments
AlexWaygood
changed the title
Aug 5, 2024
partial
plugin doesn't respect TypeVar boundspartial
plugin doesn't respect TypeVar bounds when deciding if something can be passed to partial
#17659 notes that this also causes issues for |
AlexWaygood
changed the title
[1.11 Regression] Aug 10, 2024
partial
plugin doesn't respect TypeVar bounds when deciding if something can be passed to partial
partial
plugin doesn't respect TypeVar bounds when deciding if something can be passed to partial
hauntsaninja
added a commit
to hauntsaninja/mypy
that referenced
this issue
Aug 10, 2024
I'm going to very disappointingly fix this in #17660
|
That all makes sense; thanks for the explanation! |
hauntsaninja
added a commit
that referenced
this issue
Aug 10, 2024
defrank
added a commit
to defrank/monorepo
that referenced
this issue
Oct 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
https://mypy-play.net/?mypy=master&python=3.12&gist=93876fe629e5320a88349da7a9f65188
Mypy should understand both
T
andS
to be callable due to the fact that the TypeVars haveCallable
andtype
as their respective upper bounds. We're hitting this in our attempt to upgrade mypy to 1.11.1 for Argument Clinic over at CPython in python/cpython#122550.Cc. @hauntsaninja
Your Environment
The text was updated successfully, but these errors were encountered: