Skip to content

Commit 6634f82

Browse files
committed
update for yapf
1 parent 1abe4ba commit 6634f82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

labelbox/schema/project.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,14 +288,15 @@ def _string_from_dict(dictionary: dict, value_with_quotes=False) -> str:
288288
if dictionary.get(c)
289289
])
290290

291-
def _validate_datetime(string_date: str) -> None:
291+
def _validate_datetime(string_date: str) -> bool:
292292
"""helper function validate that datetime is as follows: YYYY-MM-DD for the export"""
293293
if string_date:
294294
try:
295295
datetime.strptime(string_date, "%Y-%m-%d")
296296
except:
297297
raise ValueError(f"""Incorrect format for: {string_date}.
298298
Format must be \"YYYY-MM-DD\"""")
299+
return True
299300

300301
sleep_time = 2
301302
id_param = "projectId"

0 commit comments

Comments
 (0)