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