mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +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
|
||||
|
||||
|
||||
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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue