From 3035d9cfae5a325320dcff597aeb7ebe5e69dc93 Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Sun, 6 Feb 2022 00:55:17 +0100 Subject: [PATCH] Add some extra type hints --- vdirsyncer/utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vdirsyncer/utils.py b/vdirsyncer/utils.py index 735cab2..33cd7d1 100644 --- a/vdirsyncer/utils.py +++ b/vdirsyncer/utils.py @@ -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.