File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 18
18
19
19
BAD_FUNCTIONS = ["map" , "filter" ]
20
20
# Some hints regarding the use of bad builtins.
21
- BUILTIN_HINTS = { "map" : " Using a list comprehension can be clearer."}
22
- BUILTIN_HINTS [ "filter" ] = BUILTIN_HINTS [ "map" ]
21
+ LIST_COMP_MSG = " Using a list comprehension can be clearer."
22
+ BUILTIN_HINTS = { "map" : LIST_COMP_MSG , "filter" : LIST_COMP_MSG }
23
23
24
24
25
25
class BadBuiltinChecker (BaseChecker ):
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ load-plugins=
33
33
pylint.extensions.redefined_variable_type,
34
34
pylint.extensions.comparison_placement,
35
35
pylint.extensions.broad_try_clause,
36
+ pylint.extensions.dict_init_mutate,
36
37
37
38
# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
38
39
# number of processors available to use.
You can’t perform that action at this time.
0 commit comments