diff options
Diffstat (limited to 'pylint/testutils/pyreverse.py')
-rw-r--r-- | pylint/testutils/pyreverse.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/pylint/testutils/pyreverse.py b/pylint/testutils/pyreverse.py index 24fddad77..c621f9e7a 100644 --- a/pylint/testutils/pyreverse.py +++ b/pylint/testutils/pyreverse.py @@ -7,17 +7,11 @@ from __future__ import annotations import argparse import configparser import shlex -import sys from pathlib import Path -from typing import NamedTuple +from typing import NamedTuple, TypedDict from pylint.pyreverse.main import DEFAULT_COLOR_PALETTE -if sys.version_info >= (3, 8): - from typing import TypedDict -else: - from typing_extensions import TypedDict - # This class could and should be replaced with a simple dataclass when support for Python < 3.7 is dropped. # A NamedTuple is not possible as some tests need to modify attributes during the test. |