[api] improvement: SoftwareManager.get_screenshots returning a generator instead of a list

This commit is contained in:
Vinicius Moreira
2022-02-24 10:32:20 -03:00
parent b2fb656dc0
commit 5a1269d07f
9 changed files with 23 additions and 29 deletions

View File

@@ -355,10 +355,9 @@ class SoftwareManager(ABC):
def launch(self, pkg: SoftwarePackage):
pass
@abstractmethod
def get_screenshots(self, pkg: SoftwarePackage) -> List[str]:
def get_screenshots(self, pkg: SoftwarePackage) -> Generator[str, None, None]:
"""
:return: screenshot urls for the given package
:return: yields screenshot urls for the given package
"""
pass