Skip to content

Commit

Permalink
[return-arg-in-generator] Fix a typo in the description
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Aug 10, 2023
1 parent 29e9a0e commit 0be39f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions doc/user_guide/checkers/features.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ Basic checker Messages
:return-outside-function (E0104): *Return outside function*
Used when a "return" statement is found outside a function or method.
:return-arg-in-generator (E0106): *Return with argument inside generator*
Used when a "return" statement with an argument is found outside in a
generator function or method (e.g. with some "yield" statements). This
message can't be emitted when using Python >= 3.3.
Used when a "return" statement with an argument is found in a generator
function or method (e.g. with some "yield" statements). This message can't be
emitted when using Python >= 3.3.
:invalid-star-assignment-target (E0113): *Starred assignment target must be in a list or tuple*
Emitted when a star expression is used as a starred assignment target.
:bad-reversed-sequence (E0111): *The first reversed() argument is not a sequence*
Expand Down
3 changes: 1 addition & 2 deletions pylint/checkers/base/basic_error_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ class BasicErrorChecker(_BasicChecker):
"Return with argument inside generator",
"return-arg-in-generator",
'Used when a "return" statement with an argument is found '
"outside in a generator function or method (e.g. with some "
'"yield" statements).',
'in a generator function or method (e.g. with some "yield" statements).',
{"maxversion": (3, 3)},
),
"E0107": (
Expand Down

0 comments on commit 0be39f9

Please sign in to comment.