diff options
author | Eddy Pedroni <epedroni@pm.me> | 2024-09-25 18:35:35 +0200 |
---|---|---|
committer | Eddy Pedroni <epedroni@pm.me> | 2024-09-25 18:35:35 +0200 |
commit | ebc193873c382bd814730e8ea3032604ebb4a851 (patch) | |
tree | 7712cd78d0f97919946399627c0641b32baf4fba /src/scheduler.py | |
parent | 25546dad1f508f264b3224dd50dd42426d8b6aba (diff) |
Change card ID to string
Diffstat (limited to 'src/scheduler.py')
-rw-r--r-- | src/scheduler.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scheduler.py b/src/scheduler.py index 67e204a..575ec9d 100644 --- a/src/scheduler.py +++ b/src/scheduler.py @@ -4,16 +4,16 @@ from card import Card class Scheduler(Protocol): @abstractmethod - def __init__(self, cards: dict[int, Card], state: dict): raise NotImplementedError + def __init__(self, cards: dict[str, Card], state: dict): raise NotImplementedError @abstractmethod - def practice(self, size: int) -> list[int]: raise NotImplementedError + def practice(self, size: int) -> list[str]: raise NotImplementedError @abstractmethod - def test(self, size: int) -> list[int]: raise NotImplementedError + def test(self, size: int) -> list[str]: raise NotImplementedError @abstractmethod - def update(self, results: dict[int, int]) -> None: raise NotImplementedError + def update(self, results: dict[str, int]) -> None: raise NotImplementedError @abstractmethod def getState(self) -> dict: raise NotImplementedError |