Skip to content

Resolve TypeVar upper bounds in functools.partial#17660

Merged
hauntsaninja merged 3 commits into
python:masterfrom
hauntsaninja:partial-typevar
Aug 10, 2024
Merged

Resolve TypeVar upper bounds in functools.partial#17660
hauntsaninja merged 3 commits into
python:masterfrom
hauntsaninja:partial-typevar

Conversation

@hauntsaninja

Copy link
Copy Markdown
Collaborator

Mostly fixes #17646

@AlexWaygood AlexWaygood left a comment

Copy link
Copy Markdown
Member

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!

@github-actions

Copy link
Copy Markdown
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

hauntsaninja commented Aug 10, 2024

Copy link
Copy Markdown
Collaborator Author

@hauntsaninja
hauntsaninja merged commit 3f8c6cb into python:master Aug 10, 2024
@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

Development

Successfully merging this pull request may close these issues.

[1.11 Regression] partial plugin doesn't respect TypeVar bounds when deciding if something can be passed to partial

2 participants