From a6a544613fd6cd28c3213751173f1b0e4205d1c0 Mon Sep 17 00:00:00 2001 From: Nick Drozd Date: Fri, 25 Nov 2022 01:58:17 -0600 Subject: Enable dict-init-mutate extension (#7844) --- pylint/extensions/bad_builtin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pylint/extensions/bad_builtin.py') diff --git a/pylint/extensions/bad_builtin.py b/pylint/extensions/bad_builtin.py index 7ffaf0f6c..dd6ab3841 100644 --- a/pylint/extensions/bad_builtin.py +++ b/pylint/extensions/bad_builtin.py @@ -18,8 +18,8 @@ if TYPE_CHECKING: BAD_FUNCTIONS = ["map", "filter"] # Some hints regarding the use of bad builtins. -BUILTIN_HINTS = {"map": "Using a list comprehension can be clearer."} -BUILTIN_HINTS["filter"] = BUILTIN_HINTS["map"] +LIST_COMP_MSG = "Using a list comprehension can be clearer." +BUILTIN_HINTS = {"map": LIST_COMP_MSG, "filter": LIST_COMP_MSG} class BadBuiltinChecker(BaseChecker): -- cgit v1.2.1