Skip to content

Commit 835907c

Browse files
committed
update to ignore attr defined
1 parent 27b15ee commit 835907c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

labelbox/schema/project.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,7 @@ def _validate_datetime(string_date: str) -> None:
276276
"""helper function validate that datetime is as follows: YYYY-MM-DD for the export"""
277277
if string_date:
278278
try:
279-
datetime.fromisoformat( # type: ignore[attr-defined]
280-
string_date) # type: ignore[attr-defined]
279+
datetime.strptime(string_date, "%Y-%m-%d")
281280
except:
282281
raise ValueError(f"""Incorrect format for: {string_date}.
283282
Format must be \"YYYY-MM-DD\"""")

0 commit comments

Comments
 (0)