Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove import of cached_property from pip #6238

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions pipenv/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
import logging
import os
import sys

try:
from functools import cached_property
except ImportError:
cached_property = property
from functools import cached_property


def _ensure_modules():
Expand Down
9 changes: 1 addition & 8 deletions pipenv/utils/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import sys
import tempfile
import warnings
from functools import lru_cache
from functools import cached_property, lru_cache
from pathlib import Path
from typing import Dict, List, Optional

Expand All @@ -31,13 +31,6 @@
from pipenv.utils.requirements import normalize_name
from pipenv.vendor import click

try:
# this is only in Python3.8 and later
from functools import cached_property
except ImportError:
# eventually distlib will remove cached property when they drop Python3.7
from pipenv.patched.pip._vendor.distlib.util import cached_property

from .dependencies import (
HackedPythonVersion,
convert_deps_to_pip,
Expand Down
Loading