Skip to content

Commit

Permalink
upgrade lru_cache syntax to 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
deronnax committed Aug 28, 2023
1 parent d70784e commit e530a45
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pipenv/utils/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def ensure_project(
os.environ["PIP_PYTHON_PATH"] = project.python(system=system)


@lru_cache()
@lru_cache
def get_setuptools_version():
# type: () -> Optional[STRING_TYPE]

Expand Down
4 changes: 2 additions & 2 deletions pipenv/utils/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def __repr__(self):
)

@staticmethod
@lru_cache()
@lru_cache
def _get_pip_command():
return InstallCommand(name="InstallCommand", summary="pip Install command.")

Expand Down Expand Up @@ -884,7 +884,7 @@ def resolve_deps(
return results, internal_resolver


@lru_cache()
@lru_cache
def get_pipenv_sitedir() -> Optional[str]:
site_dir = next(
iter(d for d in pkg_resources.working_set if d.key.lower() == "pipenv"), None
Expand Down
2 changes: 1 addition & 1 deletion pipenv/utils/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from .processes import subprocess_run


@lru_cache()
@lru_cache
def make_posix(path: str) -> str:
"""
Convert a path with possible windows-style separators to a posix-style path
Expand Down

0 comments on commit e530a45

Please sign in to comment.