Skip to content

Commit b7b9813

Browse files
authored
Fix python 3.13 deprecation of typing.re
In python 3.13, `typing.re` was removed (deprecated since Python 3.8). See python/cpython#92871 This pr refactors to support python 3.13 which currently throws ```python ImportError: cannot import name 're' from 'typing' ```
1 parent ad74966 commit b7b9813

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

linkml_runtime/utils/slot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from dataclasses import dataclass
2-
from typing import Type, List, Optional, Any, re
2+
import re
3+
from typing import Type, List, Optional, Any
34

45
from rdflib import URIRef
56

0 commit comments

Comments
 (0)