Skip to content

Commit 1f2b6c6

Browse files
committed
Don't evade the URI type alias.
1 parent f062746 commit 1f2b6c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

referencing/_core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Specification:
3232
behavior across JSON Schema specification versions, etc.
3333
"""
3434

35-
id_of: Callable[[D], str | None]
35+
id_of: Callable[[D], URI | None]
3636

3737
#: An opaque specification where resources have no subresources
3838
#: nor internal identifiers.
@@ -77,7 +77,7 @@ def from_contents(
7777
raise CannotDetermineSpecification(contents)
7878
return cls(contents=contents, specification=specification)
7979

80-
def id(self) -> str | None:
80+
def id(self) -> URI | None:
8181
"""
8282
Retrieve this resource's (specification-specific) identifier.
8383
"""

0 commit comments

Comments
 (0)