diff options
Diffstat (limited to 'astroid/interpreter/_import/spec.py')
-rw-r--r-- | astroid/interpreter/_import/spec.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/astroid/interpreter/_import/spec.py b/astroid/interpreter/_import/spec.py index f17ce51f..1630ca8a 100644 --- a/astroid/interpreter/_import/spec.py +++ b/astroid/interpreter/_import/spec.py @@ -17,18 +17,13 @@ import warnings import zipimport from collections.abc import Iterator, Sequence from pathlib import Path -from typing import Any, NamedTuple +from typing import Any, Literal, NamedTuple, Protocol from astroid.const import PY310_PLUS from astroid.modutils import EXT_LIB_DIRS from . import util -if sys.version_info >= (3, 8): - from typing import Literal, Protocol -else: - from typing_extensions import Literal, Protocol - # The MetaPathFinder protocol comes from typeshed, which says: # Intentionally omits one deprecated and one optional method of `importlib.abc.MetaPathFinder` |