Skip to content

Commit 8ae92bf

Browse files
committed
Pass 6 more early tests where IDs can have empty fragments.
1 parent 47faaa5 commit 8ae92bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

referencing/_core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def lookup(self, ref: str) -> tuple[Schema, Resolver]:
171171

172172
id = self._registry._specification.id_of(target)
173173
if id is not None:
174-
base_uri = urljoin(self._base_uri, id)
174+
base_uri = urljoin(self._base_uri, id).rstrip("#")
175175
else:
176176
base_uri = uri
177177
return target, self.evolve(base_uri=base_uri, registry=registry)

0 commit comments

Comments
 (0)