diff options
Diffstat (limited to 'astroid/objects.py')
-rw-r--r-- | astroid/objects.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/astroid/objects.py b/astroid/objects.py index 08750b3e..784881be 100644 --- a/astroid/objects.py +++ b/astroid/objects.py @@ -13,9 +13,9 @@ leads to an inferred FrozenSet: from __future__ import annotations -import sys from collections.abc import Generator, Iterator -from typing import Any, TypeVar +from functools import cached_property +from typing import Any, Literal, TypeVar from astroid import bases, decorators, util from astroid.context import InferenceContext @@ -30,14 +30,6 @@ from astroid.manager import AstroidManager from astroid.nodes import node_classes, scoped_nodes from astroid.typing import InferenceResult, SuccessfulInferenceResult -if sys.version_info >= (3, 8): - from functools import cached_property - from typing import Literal -else: - from typing_extensions import Literal - - from astroid.decorators import cachedproperty as cached_property - _T = TypeVar("_T") |