summaryrefslogtreecommitdiff
path: root/pylint/checkers/newstyle.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/checkers/newstyle.py')
-rw-r--r--pylint/checkers/newstyle.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/pylint/checkers/newstyle.py b/pylint/checkers/newstyle.py
index 624f60bdd..b19a5c7ef 100644
--- a/pylint/checkers/newstyle.py
+++ b/pylint/checkers/newstyle.py
@@ -22,6 +22,8 @@
"""check for new / old style related problems
"""
+from typing import TYPE_CHECKING
+
import astroid
from astroid import nodes
@@ -29,6 +31,9 @@ from pylint.checkers import BaseChecker
from pylint.checkers.utils import check_messages, has_known_bases, node_frame_class
from pylint.interfaces import IAstroidChecker
+if TYPE_CHECKING:
+ from pylint.lint import PyLinter
+
MSGS = {
"E1003": (
"Bad first argument %r given to super()",
@@ -132,6 +137,5 @@ class NewStyleConflictChecker(BaseChecker):
visit_asyncfunctiondef = visit_functiondef
-def register(linter):
- """required method to auto register this checker"""
+def register(linter: "PyLinter") -> None:
linter.register_checker(NewStyleConflictChecker(linter))