We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 622c7b2 commit f138b23Copy full SHA for f138b23
1 file changed
jsonschema/_format.py
@@ -354,13 +354,6 @@ def is_regex(instance):
354
return re.compile(instance)
355
356
357
-if hasattr(datetime.date, "fromisoformat"):
358
- _is_date = datetime.date.fromisoformat
359
-else:
360
- def _is_date(instance):
361
- return datetime.datetime.strptime(instance, "%Y-%m-%d")
362
-
363
364
@_checks_drafts(
365
draft3="date",
366
draft7="date",
0 commit comments