diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-09-04 13:04:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-04 13:04:45 +0200 |
commit | c2989ad5c71b3e1be0f0a7e5297f9b7e47fa2766 (patch) | |
tree | 89f867543fdf13470f0dddfc509686fe137c60a8 /tests/pyreverse/test_inspector.py | |
parent | cd7761d4fcdf1d6d3ad19b34a426a7033b41cc1a (diff) | |
download | pylint-git-c2989ad5c71b3e1be0f0a7e5297f9b7e47fa2766.tar.gz |
Complete typing of all generic types (#7406)
And update ``mypy`` configuration
Diffstat (limited to 'tests/pyreverse/test_inspector.py')
-rw-r--r-- | tests/pyreverse/test_inspector.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/pyreverse/test_inspector.py b/tests/pyreverse/test_inspector.py index 15f9d305a..623a828b5 100644 --- a/tests/pyreverse/test_inspector.py +++ b/tests/pyreverse/test_inspector.py @@ -9,7 +9,7 @@ from __future__ import annotations import os -from collections.abc import Callable, Generator +from collections.abc import Generator from pathlib import Path import astroid @@ -19,13 +19,14 @@ from astroid import nodes from pylint.pyreverse import inspector from pylint.pyreverse.inspector import Project from pylint.testutils.utils import _test_cwd +from pylint.typing import GetProjectCallable HERE = Path(__file__) TESTS = HERE.parent.parent @pytest.fixture -def project(get_project: Callable) -> Generator[Project, None, None]: +def project(get_project: GetProjectCallable) -> Generator[Project, None, None]: with _test_cwd(TESTS): project = get_project("data", "data") linker = inspector.Linker(project) |