Skip to content

Commit

Permalink
Parse simplification (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt authored Oct 30, 2024
1 parent 433302b commit 18de915
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/curies/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1415,8 +1415,7 @@ def expand_all(self, curie: str) -> Optional[Collection[str]]:

def parse_curie(self, curie: str) -> ReferenceTuple:
"""Parse a CURIE."""
reference = Reference.from_curie(curie, sep=self.delimiter)
return reference.pair
return ReferenceTuple.from_curie(curie, sep=self.delimiter)

def expand_pair(self, prefix: str, identifier: str) -> Optional[str]:
"""Expand a CURIE pair to the standard URI.
Expand Down

0 comments on commit 18de915

Please sign in to comment.