Skip to content

Commit

Permalink
chore: Add missing type hint for list_all_organizations
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Uhlik committed Jun 4, 2024
1 parent 2b5fe0b commit 86fb228
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rossum_api/elis_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ async def list_all_organizations(
self,
ordering: Sequence[str] = (),
**filters: Any,
):
) -> AsyncIterable[Organization]:
"""https://elis.rossum.ai/api/docs/#list-all-organizations."""
async for o in self._http_client.fetch_all(Resource.Organization, ordering, **filters):
yield self._deserializer(Resource.Organization, o)
Expand Down
2 changes: 1 addition & 1 deletion rossum_api/elis_api_client_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def list_all_organizations(
self,
ordering: Sequence[str] = (),
**filters: Dict[str, Any],
):
) -> Iterable[Organization]:
"""https://elis.rossum.ai/api/docs/#list-all-organizations."""
return self._iter_over_async(
self.elis_api_client.list_all_organizations(ordering, **filters)
Expand Down
Empty file added rossum_api/models/py.typed
Empty file.

0 comments on commit 86fb228

Please sign in to comment.