W0102:247:MyClass.my_method: Dangerous default value [] as argument Pylint warns about this because you could append to extras in the body of the method, and that would modify the single list object that is used as the default value for every invocation of the method, something you almost...
# * dangerous default values as arguments # * redefinition of function / method / class # * uses of the global statement # [BASIC] # Required attributes for module, separated by a comma required-attributes= # Regular expression which should only match functions or classes name which do ...
dangerous-default-value:59:0:59:14:func:Dangerous default value [] as argument:UNDEFINED duplicate-argument-name:59:18:59:19:func:Duplicate argument name 'a' in function definition:HIGH disallowed-name:64:0:64:13:foo:"Disallowed name ""foo""":HIGH empty-docstring:64:0:64:13:foo:Empty ...
dangerous-default-value, no-name-in-module, logging-fstring-interpolation, super-init-not-called, redefined-builtin, attribute-defined-outside-init, arguments-differ, cyclic-import, bad-super-call, too-many-statements, unused-argument, import-outside-toplevel, import-error, sup...
or if they are not as expected. New messages: mixed-line-endings, unexpected-line-ending-format. New option: expected-line-ending-format. * 'dangerous-default-value' no longer evaluates the value of the arguments, which could result in long error messages or sensitive data being leaked. ...
(s).#disable-report=# checks for :# * doc strings# * modules / classes / functions / methods / arguments / variables name# * number of arguments, local variables, branchs, returns and statements in# functions, methods# * required module attributes# * dangerous default values as arguments#...
dangerous-default-value, no-name-in-module, logging-fstring-interpolation, super-init-not-called, redefined-builtin, attribute-defined-outside-init, arguments-differ, cyclic-import, bad-super-call, too-many-statements, unused-argument, import-outside-toplevel, ...
dangerous-default-value / W0102 (B006) deprecated-argument / W4903 deprecated-class / W4904 deprecated-decorator / W4905 deprecated-method / W4902 deprecated-module / W4901 deprecated-typing-alias / W6001 differing-param-doc / W9017 differing-type-doc / W9018 duplicate-except /...
CLUE_Rock_Paper_Scissors/advanced/rps_comms.py 229: Dangerous default value {} as argument (dangerous-default-value) CLUE_Rock_Paper_Scissors/advanced/rps_display.py 133: Import outside toplevel (adafruit_imageload) (import-outside-toplevel) 4 changes: 4 additions & 0 deletions 4 C...
dangerous-default-value, no-name-in-module, logging-fstring-interpolation, super-init-not-called, redefined-builtin, attribute-defined-outside-init, arguments-differ, cyclic-import, bad-super-call, too-many-statements, unused-argument, import-outside-toplevel, import-error, sup...