Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Revert lru_cache shim
  • Loading branch information
Avasam committed Dec 31, 2022
commit dd9a512d8a89c802fe52cb52600bb1119b73c265
10 changes: 2 additions & 8 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import subprocess
import sys
import venv
from collections.abc import Iterable, Mapping
from functools import cache
from pathlib import Path
from typing import TYPE_CHECKING, NamedTuple

Expand All @@ -15,7 +17,6 @@
from packaging.requirements import Requirement

if TYPE_CHECKING:
Comment thread
AlexWaygood marked this conversation as resolved.
Outdated
from collections.abc import Iterable, Mapping
from typing_extensions import Annotated

try:
Expand All @@ -26,13 +27,6 @@ def colored(text: str, color: str | None = None, on_color: str | None = None, at
return text


if sys.version_info >= (3, 9):
from functools import cache
else:
from functools import lru_cache

cache = lru_cache(maxsize=None)

# Used to install system-wide packages for different OS types:
METADATA_MAPPING = {"linux": "apt_dependencies", "darwin": "brew_dependencies", "win32": "choco_dependencies"}

Expand Down