summaryrefslogtreecommitdiff
path: root/pylint/typing.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/typing.py')
-rw-r--r--pylint/typing.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/pylint/typing.py b/pylint/typing.py
index ac0beaaec..da11112b4 100644
--- a/pylint/typing.py
+++ b/pylint/typing.py
@@ -7,7 +7,6 @@
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