Skip to content

Commit 0d9c4b5

Browse files
Update the wording of the new message.
Co-authored-by: Jacob Walls <[email protected]>
1 parent e55b3a6 commit 0d9c4b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/user_guide/checkers/features.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ Verbatim name of the checker is ``match_statements``.
681681
Match Statements checker Messages
682682
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
683683
:bare-name-capture-pattern (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
684+
Emitted when a name capture pattern is used in a match statement 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
@@ -25,7 +25,7 @@ class MatchStatementChecker(BaseChecker):
2525
"The name capture `case %s` makes the remaining patterns unreachable. "
2626
"Use a dotted name (for example an enum) to fix this.",
2727
"bare-name-capture-pattern",
28-
"Emitted when a name capture pattern in a match statement is used "
28+
"Emitted when a name capture pattern is used in a match statement "
2929
"and there are case statements below it.",
3030
)
3131
}

0 commit comments

Comments
 (0)