-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
hashlib constructors unexpected-argument false positive for usedforsecurity
#6017
Comments
Thank you for opening the issue. Could you try with the latest pylint <3 ? 3.0.0 alpha 4 is based on an old version of pylint like 2.10 with breaking change on top of it. |
Thanks for the reply - |
|
Thanks @LuminairPrime, I see the same. Mypy correctly complains in 3.8 but not in 3.9 or 3.10, pylint complains regardless of version. I take it pylint doesn't use typeshed then, from which mypy gets the (version-switched) correct signature? |
pylint uses astroid to create the abstract syntax tree. It's possible there's an issue in astroid not being able to create the proper AST for the python 3.9 code. |
Thanks! (Aside: didn't realise you could close cross-repo like that now, nice!) |
Bug description
Python 3.9 added the
usedforsecurity
keyword-only argument to allhashlib
constructorsConfiguration
No response
Command used
Pylint output
Expected behavior
No error
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: