Skip to content

Do not assume that args of decorated functions can be cleanly mapped to their nodes#20203

Merged
ilevkivskyi merged 2 commits intopython:masterfrom
sterliakov:bugfix/gh-20059-override-weird-signature
Nov 8, 2025
Merged

Do not assume that args of decorated functions can be cleanly mapped to their nodes#20203
ilevkivskyi merged 2 commits intopython:masterfrom
sterliakov:bugfix/gh-20059-override-weird-signature

Conversation

@sterliakov
Copy link
Collaborator

Fixes #20059. If any non-trivial decorator is present, avoid trying to pick the parameter corresponding to i-th parameter of the callable type.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2025

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@ilevkivskyi ilevkivskyi merged commit 6986993 into python:master Nov 8, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Complex paraspec handling cause Internal error (IndexError: list index out of range) at check_override

2 participants