mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Add some extra type hints
This commit is contained in:
parent
68c5968be8
commit
3035d9cfae
1 changed files with 2 additions and 3 deletions
|
|
@ -108,9 +108,8 @@ def get_storage_init_args(cls, stop_at=object):
|
||||||
return all, required
|
return all, required
|
||||||
|
|
||||||
|
|
||||||
def checkdir(path, create=False, mode=0o750):
|
def checkdir(path: str, create: bool = False, mode: int = 0o750) -> bool:
|
||||||
"""
|
"""Check whether ``path`` is a directory.
|
||||||
Check whether ``path`` is a directory.
|
|
||||||
|
|
||||||
:param create: Whether to create the directory (and all parent directories)
|
:param create: Whether to create the directory (and all parent directories)
|
||||||
if it does not exist.
|
if it does not exist.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue