Compare commits
2 Commits
1b4dd32898
...
dev/refact
Author | SHA1 | Date | |
---|---|---|---|
|
c69694da7e | ||
|
d7c5b1b658 |
@@ -193,7 +193,7 @@ def main():
|
||||
"answer",
|
||||
{
|
||||
"answer": i_answer + 1,
|
||||
"value": answer,
|
||||
"value": str(answer),
|
||||
"answerTime_s": (current - last).total_seconds(),
|
||||
"totalTime_s": (current - start).total_seconds(),
|
||||
},
|
||||
|
@@ -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: ...
|
||||
|
Reference in New Issue
Block a user