Skip to content

Commit 4ca0379

Browse files
Fix duplication of information with msgid/symbol from the MessageStore
1 parent 2c75c33 commit 4ca0379

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

pylint/config/_breaking_changes.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ class Condition(enum.Enum):
3030

3131

3232
class Information(NamedTuple):
33-
symbol: str
34-
msgid: str
33+
msgid_or_symbol: str
3534
extension: str | None
3635

3736

@@ -62,14 +61,13 @@ class Solution(enum.Enum):
6261
]
6362

6463
NO_SELF_USE = Information(
65-
msgid="R6301", symbol="no-self-use", extension="pylint.extensions.no_self_use"
64+
msgid_or_symbol="no-self-use", extension="pylint.extensions.no_self_use"
6665
)
6766
COMPARE_TO_ZERO = Information(
68-
msgid="C2001", symbol="compare-to-zero", extension="pylint.extensions.comparetozero"
67+
msgid_or_symbol="compare-to-zero", extension="pylint.extensions.comparetozero"
6968
)
7069
COMPARE_TO_EMPTY_STRING = Information(
71-
msgid="C1901",
72-
symbol="compare-to-empty-string",
70+
msgid_or_symbol="compare-to-empty-string",
7371
extension="pylint.extensions.emptystring",
7472
)
7573

0 commit comments

Comments
 (0)