Skip to content

Commit

Permalink
update msg code
Browse files Browse the repository at this point in the history
  • Loading branch information
clavedeluna committed Nov 23, 2022
1 parent d7808ed commit 1f2cdd8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions doc/data/messages/d/dict-init-mutate/bad.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
fruits = {} # [dict-init-mutate]
fruits['apple'] = 1
fruits['banana'] = 10
fruit_prices = {} # [dict-init-mutate]
fruit_prices['apple'] = 1
fruit_prices['banana'] = 10
2 changes: 1 addition & 1 deletion doc/data/messages/d/dict-init-mutate/good.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fruits = {"apple": 1, "banana": 10}
fruit_prices = {"apple": 1, "banana": 10}
2 changes: 1 addition & 1 deletion doc/user_guide/checkers/extensions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ Verbatim name of the checker is ``dict-init-mutate``.

Dict-Init-Mutate checker Messages
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:dict-init-mutate (C3301): *Dictionary mutated immediately after initialization*
:dict-init-mutate (C3401): *Dictionary mutated immediately after initialization*
Dictionaries can be initialized with a single statement using dictionary
literal syntax.

Expand Down
2 changes: 1 addition & 1 deletion pylint/extensions/dict_init_mutate.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class DictInitMutateChecker(BaseChecker):
name = "dict-init-mutate"
msgs = {
"C3301": (
"C3401": (
"Declare all known key/values when initializing the dictionary.",
"dict-init-mutate",
"Dictionaries can be initialized with a single statement "
Expand Down

0 comments on commit 1f2cdd8

Please sign in to comment.