diff options
Diffstat (limited to 'pylint/typing.py')
-rw-r--r-- | pylint/typing.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/pylint/typing.py b/pylint/typing.py index d62618605..da11112b4 100644 --- a/pylint/typing.py +++ b/pylint/typing.py @@ -1,13 +1,12 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE -# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt +# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE +# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt """A collection of typing utilities.""" from __future__ import annotations import argparse -import sys from pathlib import Path from typing import ( TYPE_CHECKING, @@ -15,19 +14,17 @@ from typing import ( Callable, Dict, Iterable, + Literal, NamedTuple, Optional, Pattern, + Protocol, Tuple, Type, + TypedDict, Union, ) -if sys.version_info >= (3, 8): - from typing import Literal, Protocol, TypedDict -else: - from typing_extensions import Literal, Protocol, TypedDict - if TYPE_CHECKING: from pylint.config.callback_actions import _CallbackAction from pylint.pyreverse.inspector import Project |