Skip to content

Commit a0b920d

Browse files
committed
Update the message ID using the script which finds the next available
ID. (pylint/script/get_unused_message_id_category.py).
1 parent aed2fe9 commit a0b920d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/user_guide/checkers/features.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,8 +680,8 @@ Verbatim name of the checker is ``match_statements``.
680680

681681
Match Statements checker Messages
682682
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
683-
:unreachable-match-patterns (E5000): *The name capture `case %s` makes the remaining patterns unreachable. Use a dotted name(for example an enum) to fix this*
684-
Emitted when a name capture pattern is used in a match statement and there
683+
:unreachable-match-patterns (E1901): *The name capture `case %s` makes the remaining patterns unreachable. Use a dotted name (for example an enum) to fix this.*
684+
Emitted when a name capture pattern in a match statement is used and there
685685
are case statements below it.
686686

687687

pylint/checkers/match_statements_checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
class MatchStatementChecker(BaseChecker):
2222
name = "match_statements"
2323
msgs = {
24-
"E5000": (
24+
"E1901": (
2525
"The name capture `case %s` makes the remaining patterns unreachable. "
2626
"Use a dotted name (for example an enum) to fix this.",
2727
"unreachable-match-patterns",

0 commit comments

Comments
 (0)