Skip to content

Commit 8c8c6d0

Browse files
committed
Fix type hints
1 parent fb66f3a commit 8c8c6d0

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/resolvelib/resolvers.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,9 @@
99
Collection,
1010
Generic,
1111
Iterable,
12-
List,
1312
Mapping,
1413
NamedTuple,
1514
Optional,
16-
Set,
17-
Tuple,
1815
)
1916

2017
from .providers import AbstractProvider
@@ -279,7 +276,7 @@ def _attempt_to_pin_criterion(self, name: KT) -> list[Criterion[RT, CT]]:
279276
# end, signal for backtracking.
280277
return causes
281278

282-
def _backtrack_iteration(self) -> Tuple[KT, CT, List[Tuple[KT, list[CT]]]]:
279+
def _backtrack_iteration(self) -> tuple[KT, CT, list[tuple[KT, list[CT]]]]:
283280
broken_state = self._states.pop()
284281
name, candidate = broken_state.mapping.popitem()
285282
incompatibilities_from_broken = [
@@ -292,8 +289,8 @@ def _backtrack_iteration(self) -> Tuple[KT, CT, List[Tuple[KT, list[CT]]]]:
292289
def _backjump_iteration(
293290
self,
294291
causes: list[RequirementInformation[RT, CT]],
295-
incompatible_deps: Set[KT],
296-
) -> Tuple[KT, CT, List[Tuple[KT, list[CT]]]]:
292+
incompatible_deps: set[KT],
293+
) -> tuple[KT, CT, list[tuple[KT, list[CT]]]]:
297294
# Ensure to backtrack to a state that caused the incompatibility
298295
incompatible_state = False
299296
name, candidate, broken_state = None, None, None

0 commit comments

Comments
 (0)