Skip to content

Commit 3035d9c

Browse files
author
Hugo Osvaldo Barrera
committed
Add some extra type hints
1 parent 68c5968 commit 3035d9c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

vdirsyncer/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,8 @@ class can take, and ``required`` is the subset of arguments the class
108108
return all, required
109109

110110

111-
def checkdir(path, create=False, mode=0o750):
112-
"""
113-
Check whether ``path`` is a directory.
111+
def checkdir(path: str, create: bool = False, mode: int = 0o750) -> bool:
112+
"""Check whether ``path`` is a directory.
114113
115114
:param create: Whether to create the directory (and all parent directories)
116115
if it does not exist.

0 commit comments

Comments
 (0)