summaryrefslogtreecommitdiff
path: root/tests/lint
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2022-04-25 22:55:47 +0200
committerGitHub <noreply@github.com>2022-04-25 22:55:47 +0200
commit1fe352583390d0fb3f390eccba95c9a78814e3f2 (patch)
treec77bf36b8d042fb11dc1edbdc31a7656ddac587e /tests/lint
parentaca9c1739c15ba5ea74a7d814f1b6cc23e79267b (diff)
downloadpylint-git-1fe352583390d0fb3f390eccba95c9a78814e3f2.tar.gz
Add typing to ``BaseChecker`` ``msgs`` and ``reports`` (#6456)
Diffstat (limited to 'tests/lint')
-rw-r--r--tests/lint/unittest_expand_modules.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lint/unittest_expand_modules.py b/tests/lint/unittest_expand_modules.py
index c1cfac951..2e1875d96 100644
--- a/tests/lint/unittest_expand_modules.py
+++ b/tests/lint/unittest_expand_modules.py
@@ -12,6 +12,7 @@ import pytest
from pylint.checkers import BaseChecker
from pylint.lint.expand_modules import _is_in_ignore_list_re, expand_modules
from pylint.testutils import CheckerTestCase, set_config
+from pylint.typing import MessageDefinitionTuple
def test__is_in_ignore_list_re_match() -> None:
@@ -84,7 +85,7 @@ class TestExpandModules(CheckerTestCase):
"""This dummy checker is needed to allow options to be set."""
name = "checker"
- msgs: dict[str, tuple[str, ...]] = {}
+ msgs: dict[str, MessageDefinitionTuple] = {}
options = (("test-opt", {"action": "store_true", "help": "help message"}),)
CHECKER_CLASS: type = Checker