KEMBAR78
Fix overload diagnostic when vararg and varkwarg can match by hauntsaninja · Pull Request #19614 · python/mypy · GitHub
Skip to content

Conversation

hauntsaninja
Copy link
Collaborator

Fixes #19612

@github-actions
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