mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-23 01:06:43 +00:00
fix(services): folder methods typing
This commit is contained in:
parent
92be699031
commit
aca05f26ea
|
@ -154,7 +154,7 @@ class Service(ABC):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_folders(cls) -> str:
|
def get_folders(cls) -> typing.List[str]:
|
||||||
"""
|
"""
|
||||||
get a plain list of occupied directories
|
get a plain list of occupied directories
|
||||||
Default extracts info from overriden get_owned_folders()
|
Default extracts info from overriden get_owned_folders()
|
||||||
|
@ -166,7 +166,7 @@ class Service(ABC):
|
||||||
return [owned_folder.path for owned_folder in cls.get_owned_folders()]
|
return [owned_folder.path for owned_folder in cls.get_owned_folders()]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_owned_folders(cls) -> str:
|
def get_owned_folders(cls) -> typing.List[OwnedPath]:
|
||||||
"""
|
"""
|
||||||
Get a list of occupied directories with ownership info
|
Get a list of occupied directories with ownership info
|
||||||
Default extracts info from overriden get_folders()
|
Default extracts info from overriden get_folders()
|
||||||
|
|
Loading…
Reference in a new issue