Skip to content

Commit 3f297f9

Browse files
committed
Avoid the type checker some other way...
1 parent c943ebf commit 3f297f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

referencing/_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def pointer(self, pointer: str, resolver: Resolver[D]) -> Resolved[D]:
168168

169169
# FIXME: this is slightly wrong, we need to know that we are
170170
# entering a subresource specifically, not just any mapping
171-
if not isinstance(contents, Sequence):
171+
if isinstance(contents, Mapping):
172172
subresource = self._specification.create_resource(contents) # type: ignore[reportUnknownArgumentType] # noqa: E501
173173
resolver = resolver.in_subresource(subresource)
174174
return Resolved(contents=contents, resolver=resolver) # type: ignore[reportUnknownArgumentType] # noqa: E501

0 commit comments

Comments
 (0)