Skip to content

Fix overload diagnostic when vararg and varkwarg can match #19614

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

Merged
merged 1 commit into from
Aug 8, 2025

Conversation

hauntsaninja
Copy link
Collaborator

Fixes #19612

Copy link
Contributor

github-actions bot commented Aug 8, 2025

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

kornia (https://github.com/kornia/kornia)
+ kornia/augmentation/container/augment.py:300: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/augmentation/container/augment.py:427: error: Unused "type: ignore" comment  [unused-ignore]

@hauntsaninja
Copy link
Collaborator Author

mypy_primer is correct but only because we don't check argument names on override

Copy link
Collaborator

@sterliakov sterliakov left a comment

Choose a reason for hiding this comment

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

Makes sense, thank you!

@ilevkivskyi ilevkivskyi merged commit a3eb219 into python:master Aug 8, 2025
20 checks passed
hauntsaninja added a commit that referenced this pull request Aug 9, 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
Development

Successfully merging this pull request may close these issues.

False positive on overload implementation does not accept all possible arguments with varargs
3 participants