-
-
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
false negative with dangerous-default-value #8826
Comments
Thanks for the report! IMO this is a duplicate of #4659. Please feel free to review the PR for it and offer a view on moving it forward. |
Hi, thanks for the quick answer. |
As I read #4659 it was suggesting collapsing the distinction between "mutable" and "stateful", not introducing a distinctive "immutable stateful" class. In other words, suggesting expanding the message beyond dicts and lists to callables that we can reasonably detect return something other than a constant. Here, you have a callable
Did you mean if "is not only meant"? Yes, the docs would need to be updated as part of that PR. |
Bug description
Configuration
No response
Command used
Pylint output
Expected behavior
ttbomk it should report
dangerous-default-value
for func, but not for func2 since the argument is readonly.Pylint version
OS / Environment
ubuntu 22.10
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: