mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00:04:15 +02:00
[api] improvement: SoftwareManager.get_screenshots returning a generator instead of a list
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user