summaryrefslogtreecommitdiff
path: root/pylint/utils/docs.py
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2022-04-18 17:41:07 +0200
committerGitHub <noreply@github.com>2022-04-18 17:41:07 +0200
commit68e9ab5ff4d4b59e0006b325112d3b78e22dd154 (patch)
tree8ed912b3bcdc6fa3665ec14e2756071c2e582124 /pylint/utils/docs.py
parente5dfec0127e342eac8bdb46b1ecd8483b39c6049 (diff)
downloadpylint-git-68e9ab5ff4d4b59e0006b325112d3b78e22dd154.tar.gz
Add last typing to ``pylint/utils`` (#6369)
Diffstat (limited to 'pylint/utils/docs.py')
-rw-r--r--pylint/utils/docs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pylint/utils/docs.py b/pylint/utils/docs.py
index 78274eb9d..5484bbfbd 100644
--- a/pylint/utils/docs.py
+++ b/pylint/utils/docs.py
@@ -8,7 +8,7 @@ from __future__ import annotations
import sys
import warnings
-from typing import TYPE_CHECKING, TextIO
+from typing import TYPE_CHECKING, Any, TextIO
from pylint.constants import MAIN_CHECKER_NAME
from pylint.utils.utils import get_rst_section, get_rst_title
@@ -17,9 +17,9 @@ if TYPE_CHECKING:
from pylint.lint.pylinter import PyLinter
-def _get_checkers_infos(linter: PyLinter) -> dict[str, dict]:
+def _get_checkers_infos(linter: PyLinter) -> dict[str, dict[str, Any]]:
"""Get info from a checker and handle KeyError."""
- by_checker: dict[str, dict] = {}
+ by_checker: dict[str, dict[str, Any]] = {}
for checker in linter.get_checkers():
name = checker.name
if name != "master":