Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Sep 21, 2024
1 parent d899373 commit 039e165
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion conda_libmamba_solver/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@
from .mamba_utils import logger_callback

if TYPE_CHECKING:
from typing import Iterable, Literal
from collections.abc import Iterable
from typing import Literal

from conda.gateways.repodata import RepodataState
from libmambapy import QueryResult
Expand Down
6 changes: 3 additions & 3 deletions conda_libmamba_solver/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import sys
from collections import defaultdict
from contextlib import suppress
from functools import lru_cache
from functools import cache
from inspect import stack
from textwrap import dedent
from typing import TYPE_CHECKING
Expand Down Expand Up @@ -58,7 +58,7 @@
from .state import SolverInputState, SolverOutputState

if TYPE_CHECKING:
from typing import Iterable, Mapping, Sequence
from collections.abc import Iterable, Mapping, Sequence

from boltons.setutils import IndexedSet
from conda.auxlib import _Null
Expand All @@ -77,7 +77,7 @@ class LibMambaSolver(Solver):
_uses_ssc = False

@staticmethod
@lru_cache(maxsize=None)
@cache
def user_agent() -> str:
"""
Expose this identifier to allow conda to extend its user agent if required
Expand Down
3 changes: 2 additions & 1 deletion conda_libmamba_solver/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@
from conda.models.prefix_graph import PrefixGraph

if TYPE_CHECKING:
from collections.abc import Iterable
from os import PathLike
from typing import Any, Iterable
from typing import Any

from conda.core.solve import Solver
from conda.models.records import PackageRecord
Expand Down
2 changes: 1 addition & 1 deletion conda_libmamba_solver/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
from conda.exceptions import PackagesNotFoundError

if TYPE_CHECKING:
from collections.abc import Iterable
from enum import Enum
from typing import Iterable

from conda.models.match_spec import MatchSpec

Expand Down

0 comments on commit 039e165

Please sign in to comment.