aboutsummaryrefslogtreecommitdiff
path: root/pylint/reporters/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/reporters/__init__.py')
-rw-r--r--pylint/reporters/__init__.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/pylint/reporters/__init__.py b/pylint/reporters/__init__.py
index 79b13e083..39cf5fb0a 100644
--- a/pylint/reporters/__init__.py
+++ b/pylint/reporters/__init__.py
@@ -21,7 +21,7 @@
# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE
"""utilities methods and classes for reporters"""
-
+from typing import TYPE_CHECKING
from pylint import utils
from pylint.reporters.base_reporter import BaseReporter
@@ -30,10 +30,13 @@ from pylint.reporters.json_reporter import JSONReporter
from pylint.reporters.multi_reporter import MultiReporter
from pylint.reporters.reports_handler_mix_in import ReportsHandlerMixIn
+if TYPE_CHECKING:
+ from pylint.lint.pylinter import PyLinter
+
-def initialize(linter):
+def initialize(linter: "PyLinter") -> None:
"""initialize linter with reporters in this package"""
- utils.register_plugins(linter, __path__[0])
+ utils.register_plugins(linter, __path__[0]) # type: ignore # Fixed in https://github.com/python/mypy/pull/9454
__all__ = [