Skip to content

Commit

Permalink
add: Pattern and Match to type def
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholsn authored Dec 20, 2024
1 parent c28679a commit 0b60c45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions linkml_runtime/utils/slot.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from dataclasses import dataclass
from rdflib import URIRef
from re import Pattern, Match
from typing import Type, List, Optional, Any
from typing import Type, List, Optional, Any, Union

@dataclass
class Slot:
Expand All @@ -14,4 +14,4 @@ class Slot:
domain: Optional[Type]
range: Any
mappings: Optional[List[URIRef]] = None
pattern: Optional[re] = None
pattern: Optional[Union[Pattern, Match]] = None

0 comments on commit 0b60c45

Please sign in to comment.