[api] improvement: list_suggestions as an optional method (SoftwareManager)

This commit is contained in:
Vinicius Moreira
2022-04-12 10:22:38 -03:00
parent 4271d94b26
commit 33cfa97bf0
7 changed files with 7 additions and 8 deletions

View File

@@ -360,8 +360,7 @@ class SoftwareManager(ABC):
"""
pass
@abstractmethod
def list_suggestions(self, limit: int, filter_installed: bool) -> List[PackageSuggestion]:
def list_suggestions(self, limit: int, filter_installed: bool) -> Optional[List[PackageSuggestion]]:
"""
:param limit: max suggestions to be returned. If limit < 0, it should not be considered
:param filter_installed: if the installed suggestions should not be retrieved