Refactor code for API #3

Merged
mikael.capelle merged 13 commits from dev/refactor-for-ui into master 2024-12-08 13:06:42 +00:00
Showing only changes of commit d7c5b1b658 - Show all commits

View File

@ -7,12 +7,10 @@ _T = TypeVar("_T")
class ProgressHandler(Protocol): class ProgressHandler(Protocol):
@overload @overload
def wrap(self, values: Sequence[_T]) -> Iterator[_T]: def wrap(self, values: Sequence[_T]) -> Iterator[_T]: ...
...
@overload @overload
def wrap(self, values: Iterable[_T], total: int) -> Iterator[_T]: def wrap(self, values: Iterable[_T], total: int) -> Iterator[_T]: ...
...
class BaseSolver: class BaseSolver:
@ -33,5 +31,4 @@ class BaseSolver:
self.outputs = outputs self.outputs = outputs
@abstractmethod @abstractmethod
def solve(self, input: str) -> Iterator[Any] | None: def solve(self, input: str) -> Iterator[Any] | None: ...
...