Skip to content

Commit

Permalink
fix: imports
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <me@frostming.com>
  • Loading branch information
frostming committed Aug 1, 2024
1 parent 5a3c995 commit eb5473e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
2 changes: 2 additions & 0 deletions src/resolvelib/resolvers/criterion.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from typing import Collection, Generic, Iterable, Iterator

from ..structs import CT, RT, RequirementInformation
Expand Down
23 changes: 13 additions & 10 deletions src/resolvelib/resolvers/resolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,10 @@
import collections
import itertools
import operator
from typing import Collection, Generic, Iterable, Mapping
from typing import TYPE_CHECKING, Collection, Generic, Iterable, Mapping

from ..providers import AbstractProvider, Preference
from ..providers import AbstractProvider
from ..reporters import BaseReporter
from ..resolvers.abstract import AbstractResolver, Result
from ..resolvers.exceptions import (
InconsistentCandidate,
RequirementsConflicted,
ResolutionImpossible,
ResolutionTooDeep,
ResolverException,
)
from ..structs import (
CT,
KT,
Expand All @@ -26,7 +18,18 @@
State,
build_iter_view,
)
from .abstract import AbstractResolver, Result
from .criterion import Criterion
from .exceptions import (
InconsistentCandidate,
RequirementsConflicted,
ResolutionImpossible,
ResolutionTooDeep,
ResolverException,
)

if TYPE_CHECKING:
from ..providers import Preference


def _build_result(state: State[RT, CT, KT]) -> Result[RT, CT, KT]:
Expand Down

0 comments on commit eb5473e

Please sign in to comment.