Skip to content

Commit

Permalink
Use Pattern as type instead of re
Browse files Browse the repository at this point in the history
  • Loading branch information
caufieldjh authored Nov 18, 2024
1 parent 72316ff commit caeb9f9
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,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

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

0 comments on commit caeb9f9

Please sign in to comment.