Refactor code for API #3
@ -7,12 +7,10 @@ _T = TypeVar("_T")
|
||||
|
||||
class ProgressHandler(Protocol):
|
||||
@overload
|
||||
def wrap(self, values: Sequence[_T]) -> Iterator[_T]:
|
||||
...
|
||||
def wrap(self, values: Sequence[_T]) -> Iterator[_T]: ...
|
||||
|
||||
@overload
|
||||
def wrap(self, values: Iterable[_T], total: int) -> Iterator[_T]:
|
||||
...
|
||||
def wrap(self, values: Iterable[_T], total: int) -> Iterator[_T]: ...
|
||||
|
||||
|
||||
class BaseSolver:
|
||||
@ -33,5 +31,4 @@ class BaseSolver:
|
||||
self.outputs = outputs
|
||||
|
||||
@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