Skip to content

Commit

Permalink
Use IChecker for ReportHandlerMixin.register_report
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Sep 14, 2021
1 parent 4c2bb2c commit 4c84e53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pylint/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ def display_reports(self, layout):
"""display results encapsulated in the layout tree"""


__all__ = ("IRawChecker", "IAstroidChecker", "ITokenChecker", "IReporter")
__all__ = ("IRawChecker", "IAstroidChecker", "ITokenChecker", "IReporter", "IChecker")
3 changes: 2 additions & 1 deletion pylint/reporters/reports_handler_mix_in.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from typing import Any, Callable, DefaultDict, Dict

from pylint.exceptions import EmptyReportError
from pylint.interfaces import IChecker
from pylint.reporters.ureports.nodes import Section


Expand All @@ -24,7 +25,7 @@ def report_order(self):
return list(self._reports)

def register_report(
self, reportid: str, r_title: str, r_cb: Callable, checker: Any
self, reportid: str, r_title: str, r_cb: Callable, checker: IChecker
) -> None:
"""register a report
Expand Down

0 comments on commit 4c84e53

Please sign in to comment.