Add some extra type hints

This commit is contained in:
Hugo Osvaldo Barrera 2022-02-06 00:55:17 +01:00
parent 68c5968be8
commit 3035d9cfae

View file

@ -108,9 +108,8 @@ def get_storage_init_args(cls, stop_at=object):
return all, required
def checkdir(path, create=False, mode=0o750):
"""
Check whether ``path`` is a directory.
def checkdir(path: str, create: bool = False, mode: int = 0o750) -> bool:
"""Check whether ``path`` is a directory.
:param create: Whether to create the directory (and all parent directories)
if it does not exist.