Skip to content

Commit 97de7c5

Browse files
committed
Constrain isodate import to Py<3.11
1 parent 2c1cb70 commit 97de7c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

linkml_runtime/utils/metamodelcore.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from typing import Union, Optional
88
from urllib.parse import urlparse
99

10-
import isodate
1110
from rdflib import Literal, BNode, URIRef
1211
from rdflib.namespace import is_ncname
1312
from rdflib.term import Identifier as rdflib_Identifier
@@ -19,6 +18,9 @@
1918
from linkml_runtime.utils.uri_validator import validate_uri_reference
2019
from linkml_runtime.utils.uri_validator import validate_curie
2120

21+
if sys.version_info < (3, 11):
22+
import isodate
23+
2224
# Reference Decimal to make sure it stays in the imports
2325
_z = Decimal(1)
2426

0 commit comments

Comments
 (0)