[api] improvement: SoftwarePackage.get_supported_actions can now return any iterable

This commit is contained in:
Vinicius Moreira
2021-12-17 14:55:53 -03:00
parent 33292bab61
commit 3296fd34da
7 changed files with 17 additions and 17 deletions

View File

@@ -1,6 +1,6 @@
from abc import ABC, abstractmethod
from enum import Enum
from typing import List, Optional
from typing import List, Optional, Iterable
from bauh.api.paths import CACHE_DIR
@@ -202,7 +202,7 @@ class SoftwarePackage(ABC):
"""
pass
def get_custom_supported_actions(self) -> List[CustomSoftwareAction]:
def get_custom_actions(self) -> Optional[Iterable[CustomSoftwareAction]]:
"""
:return: custom supported actions
"""