-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Overloaded deprecated method use is not reported #18474
Labels
Comments
sobolevn
added
bug
mypy got something wrong
topic-overloads
topic-pep-702
PEP 702, @deprecated
labels
Jan 15, 2025
cc @tyralla who solved similar problems. |
Strange. I will have a look at it. Thanks for reporting! |
Is it fixed by #18333, by any chance? |
Nope :( Using the same gist:
|
tyralla
added a commit
to tyralla/mypy
that referenced
this issue
Jan 15, 2025
Fixes python#18474 It seems I covered overloaded functions, descriptors, and special methods so far but completely forgot about "normal" methods (thanks to @sobolevn for pointing this out). This addition should do the trick.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Playground: https://mypy-play.net/?mypy=latest&python=3.12&gist=6ae94d19a2160b47cd3c3f2f0bc96553
This code does not produce a
[deprecated]
error:However, this one does:
Version:
The text was updated successfully, but these errors were encountered: