Skip to content

Commit 5b39db3

Browse files
authored
Fix grammar and spelling issues (#10566)
1 parent 4493e0a commit 5b39db3

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

doc/data/messages/t/too-many-positional-arguments/details.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Good function signatures don’t have many positional parameters. For almost all
22
interfaces, comprehensibility suffers beyond a handful of arguments.
33

4-
Positional arguments work well for cases where the the use cases are
4+
Positional arguments work well for cases where the use cases are
55
self-evident, such as unittest's ``assertEqual(first, second, "assert msg")``
66
or ``zip(fruits, vegetables)``.
77

doc/development_guide/contributor_guide/tests/writing_test.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ current environment in order to have faster feedback. Run from Pylint root direc
119119

120120
You can use all the options you would use for pytest_, for example ``-k "test_functional[len_checks]"``.
121121
Furthermore, if required the .txt file with expected messages can be regenerated based
122-
on the the current output by appending ``--update-functional-output`` to the command line::
122+
on the current output by appending ``--update-functional-output`` to the command line::
123123

124124
python tests/test_functional.py --update-functional-output -k "test_functional[len_checks]"
125125

doc/user_guide/checkers/features.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -688,11 +688,11 @@ Match Statements checker Messages
688688
are case statements below it.
689689
:invalid-match-args-definition (E1902): *`__match_args__` must be a tuple of strings.*
690690
Emitted if `__match_args__` isn't a tuple of strings required for match.
691-
:too-many-positional-sub-patterns (E1903): *%s excepts %d positional sub-patterns (given %d)*
692-
Emitted when the number of allowed positional sub-patterns exceeds the the
691+
:too-many-positional-sub-patterns (E1903): *%s expects %d positional sub-patterns (given %d)*
692+
Emitted when the number of allowed positional sub-patterns exceeds the
693693
number of allowed sub-patterns specified in `__match_args__`.
694694
:multiple-class-sub-patterns (E1904): *Multiple sub-patterns for attribute %s*
695-
Emitted when there are more than one sub-patterns for a specific attribute in
695+
Emitted when there is more than one sub-pattern for a specific attribute in
696696
a class pattern.
697697

698698

pylint/checkers/match_statements_checker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ class MatchStatementChecker(BaseChecker):
3535
"Emitted if `__match_args__` isn't a tuple of strings required for match.",
3636
),
3737
"E1903": (
38-
"%s excepts %d positional sub-patterns (given %d)",
38+
"%s expects %d positional sub-patterns (given %d)",
3939
"too-many-positional-sub-patterns",
4040
"Emitted when the number of allowed positional sub-patterns exceeds the "
41-
"the number of allowed sub-patterns specified in `__match_args__`.",
41+
"number of allowed sub-patterns specified in `__match_args__`.",
4242
),
4343
"E1904": (
4444
"Multiple sub-patterns for attribute %s",
4545
"multiple-class-sub-patterns",
46-
"Emitted when there are more than one sub-patterns for a specific "
46+
"Emitted when there is more than one sub-pattern for a specific "
4747
"attribute in a class pattern.",
4848
),
4949
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
invalid-match-args-definition:11:21:11:31:C:`__match_args__` must be a tuple of strings.:HIGH
22
invalid-match-args-definition:14:21:14:29:D:`__match_args__` must be a tuple of strings.:HIGH
3-
too-many-positional-sub-patterns:25:13:25:20:f1:A excepts 1 positional sub-patterns (given 2):INFERENCE
4-
too-many-positional-sub-patterns:27:13:27:23:f1:B excepts 2 positional sub-patterns (given 3):INFERENCE
3+
too-many-positional-sub-patterns:25:13:25:20:f1:A expects 1 positional sub-patterns (given 2):INFERENCE
4+
too-many-positional-sub-patterns:27:13:27:23:f1:B expects 2 positional sub-patterns (given 3):INFERENCE
55
multiple-class-sub-patterns:32:13:32:22:f2:Multiple sub-patterns for attribute x:INFERENCE
66
multiple-class-sub-patterns:34:13:34:29:f2:Multiple sub-patterns for attribute x:INFERENCE
77
undefined-variable:40:13:40:23:f2:Undefined variable 'NotDefined':UNDEFINED

0 commit comments

Comments
 (0)