📝 Updated SourceIterator type hints

This commit is contained in:
GeoffreyCoulaud
2023-06-05 13:29:54 +02:00
parent 725bab5c93
commit b50a0a1a04
4 changed files with 8 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
import re
from pathlib import Path
from time import time
from typing import Iterable, Optional
from typing import Iterable, Optional, Generator
from src import shared
from src.game import Game
@@ -44,7 +44,7 @@ class SteamSourceIterator(SourceIterator):
)
return manifests
def generator_builder(self) -> Optional[Game]:
def generator_builder(self) -> Generator[Optional[Game], None, None]:
"""Generator method producing games"""
appid_cache = set()
manifests = self.get_manifests()