Skip to content

Commit

Permalink
Don't evade the URI type alias.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Jan 5, 2023
1 parent f062746 commit 1f2b6c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions referencing/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Specification:
behavior across JSON Schema specification versions, etc.
"""

id_of: Callable[[D], str | None]
id_of: Callable[[D], URI | None]

#: An opaque specification where resources have no subresources
#: nor internal identifiers.
Expand Down Expand Up @@ -77,7 +77,7 @@ def from_contents(
raise CannotDetermineSpecification(contents)
return cls(contents=contents, specification=specification)

def id(self) -> str | None:
def id(self) -> URI | None:
"""
Retrieve this resource's (specification-specific) identifier.
"""
Expand Down

0 comments on commit 1f2b6c6

Please sign in to comment.