From 1fe352583390d0fb3f390eccba95c9a78814e3f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Noord?= <13665637+DanielNoord@users.noreply.github.com> Date: Mon, 25 Apr 2022 22:55:47 +0200 Subject: Add typing to ``BaseChecker`` ``msgs`` and ``reports`` (#6456) --- pylint/reporters/reports_handler_mix_in.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pylint/reporters') diff --git a/pylint/reporters/reports_handler_mix_in.py b/pylint/reporters/reports_handler_mix_in.py index f6abdc092..cec76690f 100644 --- a/pylint/reporters/reports_handler_mix_in.py +++ b/pylint/reporters/reports_handler_mix_in.py @@ -6,17 +6,17 @@ from __future__ import annotations import collections from collections.abc import MutableSequence -from typing import TYPE_CHECKING, Callable, DefaultDict, List, Optional, Tuple +from typing import TYPE_CHECKING, DefaultDict, List, Tuple from pylint.exceptions import EmptyReportError from pylint.reporters.ureports.nodes import Section +from pylint.typing import ReportsCallable from pylint.utils import LinterStats if TYPE_CHECKING: from pylint.checkers import BaseChecker from pylint.lint.pylinter import PyLinter -ReportsCallable = Callable[[Section, LinterStats, Optional[LinterStats]], None] ReportsDict = DefaultDict["BaseChecker", List[Tuple[str, str, ReportsCallable]]] -- cgit v1.2.1