-
-
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
Increase the cases detected by dangerous-default-value (W0102) ? #9435
Labels
Duplicate 🐫
Duplicate of an already existing issue
Comments
JonJagger
added
the
Needs triage 📥
Just created, needs acknowledgment, triage, and proper labelling
label
Feb 14, 2024
JonJagger
changed the title
Increase the cases detected by W0102 dangerous-default-value ?
Increase the cases detected by (W0102) dangerous-default-value ?
Feb 14, 2024
JonJagger
changed the title
Increase the cases detected by (W0102) dangerous-default-value ?
Increase the cases detected by dangerous-default-value (W0102) ?
Feb 14, 2024
Pierre-Sassoulas
added
Duplicate 🐫
Duplicate of an already existing issue
and removed
Needs triage 📥
Just created, needs acknowledgment, triage, and proper labelling
labels
Feb 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current problem
W0102 detects a default value such as
[ ]
For example, from the docs:
Consider the following example:
Is it reasonable that any default expression that is a function call
should be detected as a dangerous-default-value / dangerous-default-expression ?
P.S. pylint is great :-)
Desired solution
Any default expression that is a function call is detected as a dangerous-default-value / dangerous-default-expression
Additional context
No response
The text was updated successfully, but these errors were encountered: