diff --git a/rossum_api/elis_api_client.py b/rossum_api/elis_api_client.py index 6d25375..21f4ab5 100644 --- a/rossum_api/elis_api_client.py +++ b/rossum_api/elis_api_client.py @@ -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) diff --git a/rossum_api/elis_api_client_sync.py b/rossum_api/elis_api_client_sync.py index 23ce40a..ed60619 100644 --- a/rossum_api/elis_api_client_sync.py +++ b/rossum_api/elis_api_client_sync.py @@ -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) diff --git a/rossum_api/models/py.typed b/rossum_api/models/py.typed new file mode 100644 index 0000000..e69de29