summaryrefslogtreecommitdiff
path: root/tests/utils
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2022-04-14 19:37:49 +0200
committerGitHub <noreply@github.com>2022-04-14 19:37:49 +0200
commit8f872bf49c344d1d16b3573136d53b2cbda007c6 (patch)
treed203652d9d515b2a5d47cca6e1f7519a157d5990 /tests/utils
parentadf660a7300148a31cdb8bc25301bfd21af0602b (diff)
downloadpylint-git-8f872bf49c344d1d16b3573136d53b2cbda007c6.tar.gz
Use ``python-typing-update`` on half of the ``tests`` directory (#6317)
Diffstat (limited to 'tests/utils')
-rw-r--r--tests/utils/unittest_ast_walker.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/utils/unittest_ast_walker.py b/tests/utils/unittest_ast_walker.py
index ec271bee7..c0ec6b8e6 100644
--- a/tests/utils/unittest_ast_walker.py
+++ b/tests/utils/unittest_ast_walker.py
@@ -2,8 +2,9 @@
# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE
# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt
+from __future__ import annotations
+
import warnings
-from typing import Dict, Set
import astroid
@@ -13,7 +14,7 @@ from pylint.utils import ASTWalker
class TestASTWalker:
class MockLinter:
- def __init__(self, msgs: Dict[str, bool]) -> None:
+ def __init__(self, msgs: dict[str, bool]) -> None:
self._msgs = msgs
def is_message_enabled(self, msgid: str) -> bool:
@@ -21,7 +22,7 @@ class TestASTWalker:
class Checker:
def __init__(self) -> None:
- self.called: Set[str] = set()
+ self.called: set[str] = set()
@check_messages("first-message")
def visit_module(self, module): # pylint: disable=unused-argument