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

Resolve TypeVar upper bounds in functools.partial #17660

Merged
merged 3 commits into from
Aug 10, 2024

Conversation

hauntsaninja
Copy link
Collaborator

Mostly fixes #17646

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. I assumed it was a simple oversight like this, just hadn't had the chance to look!

Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

CPython (Argument Clinic) (https://github.com/python/cpython)
+ Tools/clinic/libclinic/converter.py:550: error: Unused "type: ignore" comment  [unused-ignore]

hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
- src/hydra_zen/_hydra_overloads.py:109: error: "F" not callable  [misc]

@hauntsaninja
Copy link
Collaborator Author

hauntsaninja commented Aug 10, 2024

Yup, thanks to Ivan's https://github.com/python/mypy/pull/15898/files#diff-f96a2d6138bc6cdf2a07c4d37f6071cc25c1631afc107e277a28d5b59fc0ef04R675 we benefit from fixing missing logic in all the places

@hauntsaninja hauntsaninja merged commit 3f8c6cb into python:master Aug 10, 2024
19 checks passed
@hauntsaninja hauntsaninja deleted the partial-typevar branch August 10, 2024 20:33
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