diff --git a/linkml_runtime/utils/slot.py b/linkml_runtime/utils/slot.py index 762523aa..2fc8dc40 100644 --- a/linkml_runtime/utils/slot.py +++ b/linkml_runtime/utils/slot.py @@ -1,5 +1,5 @@ from dataclasses import dataclass -from typing import Type, List, Optional, Any +from typing import Type, List, Optional, Any, Pattern from rdflib import URIRef @@ -15,4 +15,4 @@ class Slot: domain: Optional[Type] range: Any mappings: Optional[List[URIRef]] = None - pattern: Optional[re] = None + pattern: Optional[Pattern] = None