Skip to content

Commit 75252e6

Browse files
committed
pylint
Signed-off-by: Alvaro Frias <[email protected]>
1 parent 9ec24bb commit 75252e6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pylint/checkers/type_annotations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def _check_return_type_annotation(
8686
):
8787
return
8888

89-
# Skip property setters and deleters (return value not meaningful)
89+
# Skip property setters and delete methods (return value not meaningful)
9090
if utils.decorated_with(
9191
node, ["property", "*.setter", "*.deleter", "builtins.property"]
9292
):

tests/checkers/unittest_type_annotations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def foo(self, x: int) -> int: #@
156156
self.checker.visit_functiondef(node)
157157

158158
def test_classmethod_cls_parameter_skipped(self) -> None:
159-
"""Test that 'cls' parameter is skipped in classmethods."""
159+
"""Test that 'cls' parameter is skipped in class methods."""
160160
node = astroid.extract_node(
161161
"""
162162
class MyClass:

tests/message/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616

1717

1818
@pytest.fixture
19-
def msgid():
19+
def msgid() -> str:
2020
return "W1234"
2121

2222

2323
@pytest.fixture
24-
def symbol():
24+
def symbol() -> str:
2525
return "msg-symbol"
2626

2727

0 commit comments

Comments
 (0)