Refactor code for API #3
@ -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: ...
|
||||||
...
|
|
||||||
|
Loading…
Reference in New Issue
Block a user