🚧 More work on importer and source

This commit is contained in:
GeoffreyCoulaud
2023-05-06 23:28:29 +02:00
parent 0abe283619
commit 9a33660f94
3 changed files with 102 additions and 101 deletions

View File

@@ -6,11 +6,6 @@ from enum import IntEnum, auto
class SourceIterator(Iterator):
"""Data producer for a source of games"""
class States(IntEnum):
DEFAULT = auto()
READY = auto()
state = States.DEFAULT
source = None
def __init__(self, source) -> None:
@@ -20,6 +15,10 @@ class SourceIterator(Iterator):
def __iter__(self):
return self
@abstractmethod
def __len__(self):
pass
@abstractmethod
def __next__(self):
pass