diff options
| author | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2023-04-23 23:53:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-23 23:53:59 +0200 |
| commit | a91a8d60ccd5ca8e5f8e162d67b3b93444105235 (patch) | |
| tree | 7087fd6ddbabfc81f99627f1122f8092bec977fc /astroid/objects.py | |
| parent | e49bfaa2229e2ce27b7a212ad3ebe378dc17f613 (diff) | |
| download | astroid-git-a91a8d60ccd5ca8e5f8e162d67b3b93444105235.tar.gz | |
Drop support for Python 3.7 (#2137)
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") |
