Skip to content

Commit 3760109

Browse files
committed
Loosen back to iterable since we now pmap again.
1 parent 86a434a commit 3760109

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

referencing/_core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def pointer(self, base_uri: str, pointer: str) -> tuple[str, Schema]:
6565
def id(self):
6666
return self._specification.id_of(self.resource)
6767

68-
def anchors(self) -> list[AnchorType]:
68+
def anchors(self) -> Iterable[AnchorType]:
6969
if isinstance(self.resource, bool):
7070
return []
7171
return self._specification.anchors_in(self.resource)
@@ -102,9 +102,9 @@ class Specification:
102102

103103
id_of: Callable[[Schema], str | None]
104104
subresources_of: Callable[[ObjectSchema], Iterable[Schema]]
105-
_anchors_in: Callable[[ObjectSchema, Specification], list[AnchorType]]
105+
_anchors_in: Callable[[ObjectSchema, Specification], Iterable[AnchorType]]
106106

107-
def anchors_in(self, resource: ObjectSchema) -> list[AnchorType]:
107+
def anchors_in(self, resource: ObjectSchema) -> Iterable[AnchorType]:
108108
return self._anchors_in(resource, self)
109109

110110

0 commit comments

Comments
 (0)