Skip to content

Commit cb76033

Browse files
committed
Fix an annotation.
1 parent b123f18 commit cb76033

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

referencing/_core.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ class Resolver:
236236

237237
_base_uri: str
238238
_registry: Registry
239-
_previous: PList[Resolver] = field(default=plist(), repr=False)
239+
_previous: PList[str] = field(default=plist(), repr=False)
240240

241241
def lookup(self, ref: str) -> tuple[Schema, Resolver]:
242242
if ref.startswith("#"):
@@ -280,7 +280,9 @@ def with_root(
280280
)
281281
return self._evolve(base_uri=uri, registry=registry)
282282

283-
def dynamic_scope(self):
283+
def dynamic_scope(
284+
self,
285+
) -> Iterable[tuple[str, IdentifiedResource, PMap[str, AnchorType]]]:
284286
for uri in self._previous:
285287
resource, anchors, _ = self._registry.resource_at(uri)
286288
yield uri, resource, anchors

0 commit comments

Comments
 (0)