Skip to content

Commit

Permalink
review: use import functools
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Jun 17, 2024
1 parent 95ce12a commit 83b92b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cibuildwheel/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
import dataclasses
import difflib
import enum
import functools
import shlex
import textwrap
from collections.abc import Callable, Generator, Iterable, Iterator, Set
from functools import cached_property, lru_cache
from pathlib import Path
from typing import Any, Literal, Mapping, Sequence, TypedDict, Union # noqa: TID251

Expand Down Expand Up @@ -501,7 +501,7 @@ def config_file_path(self) -> Path | None:

return None

@cached_property
@functools.cached_property
def package_requires_python_str(self) -> str | None:
args = self.command_line_arguments
return get_requires_python_str(Path(args.package_dir))
Expand Down Expand Up @@ -721,7 +721,7 @@ def check_for_deprecated_options(self) -> None:
deprecated_selectors("CIBW_SKIP", build_selector.skip_config)
deprecated_selectors("CIBW_TEST_SKIP", test_selector.skip_config)

@cached_property
@functools.cached_property
def defaults(self) -> Options:
return Options(
platform=self.platform,
Expand Down Expand Up @@ -838,7 +838,7 @@ def compute_options(
return options


@lru_cache(maxsize=None)
@functools.lru_cache(maxsize=None)
def _get_pinned_container_images() -> Mapping[str, Mapping[str, str]]:
"""
This looks like a dict of dicts, e.g.
Expand Down

0 comments on commit 83b92b1

Please sign in to comment.