simplified SourceIterator

This commit is contained in:
GeoffreyCoulaud
2023-07-20 10:29:39 +02:00
parent 2acdedf033
commit 30152cd10a
8 changed files with 16 additions and 42 deletions

View File

@@ -24,7 +24,7 @@ from hashlib import sha256
from json import JSONDecodeError
from pathlib import Path
from time import time
from typing import Optional, TypedDict, Generator, Iterable
from typing import Optional, TypedDict, Iterable
from abc import abstractmethod
from src import shared
@@ -118,7 +118,7 @@ class SubSource(Iterable):
return (game, additional_data)
def __iter__(self) -> Generator[SourceIterationResult, None, None]:
def __iter__(self):
"""
Iterate through the installed games with a generator
:raises InvalidLibraryFileError: on initial call if the library file is bad