summaryrefslogtreecommitdiff
path: root/tests/checkers
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2022-05-05 11:26:09 +0200
committerGitHub <noreply@github.com>2022-05-05 11:26:09 +0200
commitcae60543576f4c71520982053d43e4da022ebf31 (patch)
treefe9352ecd342534a0018ac753706ae9a5706c136 /tests/checkers
parent6486514dcce0ae8c4b18e1fc26570173ffeef59e (diff)
downloadpylint-git-cae60543576f4c71520982053d43e4da022ebf31.tar.gz
Fix AstCallbackMethod typing (#6445)
Diffstat (limited to 'tests/checkers')
-rw-r--r--tests/checkers/unittest_utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/checkers/unittest_utils.py b/tests/checkers/unittest_utils.py
index 178d5467b..8b9189892 100644
--- a/tests/checkers/unittest_utils.py
+++ b/tests/checkers/unittest_utils.py
@@ -11,6 +11,7 @@ import pytest
from astroid import nodes
from pylint.checkers import utils
+from pylint.checkers.base_checker import BaseChecker
@pytest.mark.parametrize(
@@ -478,9 +479,9 @@ def test_deprecation_is_inside_lambda() -> None:
def test_deprecation_check_messages() -> None:
with pytest.warns(DeprecationWarning) as records:
- class Checker: # pylint: disable=unused-variable
+ class Checker(BaseChecker): # pylint: disable=unused-variable
@utils.check_messages("my-message")
- def visit_assname(self, node):
+ def visit_assname(self, node: nodes.NodeNG) -> None:
pass
assert len(records) == 1