diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-04-25 22:55:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-25 22:55:47 +0200 |
commit | 1fe352583390d0fb3f390eccba95c9a78814e3f2 (patch) | |
tree | c77bf36b8d042fb11dc1edbdc31a7656ddac587e /tests/config | |
parent | aca9c1739c15ba5ea74a7d814f1b6cc23e79267b (diff) | |
download | pylint-git-1fe352583390d0fb3f390eccba95c9a78814e3f2.tar.gz |
Add typing to ``BaseChecker`` ``msgs`` and ``reports`` (#6456)
Diffstat (limited to 'tests/config')
-rw-r--r-- | tests/config/unittest_config.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/config/unittest_config.py b/tests/config/unittest_config.py index cd36ef895..8c668aa52 100644 --- a/tests/config/unittest_config.py +++ b/tests/config/unittest_config.py @@ -14,6 +14,7 @@ import pytest from pylint import config from pylint.checkers import BaseChecker from pylint.testutils import CheckerTestCase, set_config +from pylint.typing import MessageDefinitionTuple def test__regexp_validator_valid() -> None: @@ -64,7 +65,7 @@ class TestPyLinterOptionSetters(CheckerTestCase): class Checker(BaseChecker): name = "checker" - msgs: dict[str, tuple[str, ...]] = {} + msgs: dict[str, MessageDefinitionTuple] = {} options = (("test-opt", {"action": "store_true", "help": "help message"}),) CHECKER_CLASS: type = Checker |