Skip to content

Commit

Permalink
Merge pull request #78 from uhlikfil/main
Browse files Browse the repository at this point in the history
fix: fix typing of filters kwargs in sync client
  • Loading branch information
asgeirrr authored Aug 12, 2024
2 parents 0241f15 + 7ae75e1 commit 999c39e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions rossum_api/elis_api_client_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def retrieve_queue(self, queue_id: int) -> Queue:
def list_all_queues(
self,
ordering: Sequence[str] = (),
**filters: Dict[str, Any],
**filters: Any,
) -> Iterator[Queue]:
"""https://elis.rossum.ai/api/docs/#list-all-queues."""
return self._iter_over_async(self.elis_api_client.list_all_queues(ordering, **filters))
Expand Down Expand Up @@ -208,7 +208,7 @@ def export_annotations_to_file(
def list_all_organizations(
self,
ordering: Sequence[str] = (),
**filters: Dict[str, Any],
**filters: Any,
) -> Iterator[Organization]:
"""https://elis.rossum.ai/api/docs/#list-all-organizations."""
return self._iter_over_async(
Expand All @@ -232,7 +232,7 @@ def retrieve_own_organization(self) -> Organization:
def list_all_schemas(
self,
ordering: Sequence[str] = (),
**filters: Dict[str, Any],
**filters: Any,
) -> Iterator[Schema]:
"""https://elis.rossum.ai/api/docs/#list-all-schemas."""
return self._iter_over_async(self.elis_api_client.list_all_schemas(ordering, **filters))
Expand All @@ -258,7 +258,7 @@ def retrieve_engine(self, engine_id: int) -> Engine:
def list_all_users(
self,
ordering: Sequence[str] = (),
**filters: Dict[str, Any],
**filters: Any,
) -> Iterator[User]:
"""https://elis.rossum.ai/api/docs/#list-all-users."""
return self._iter_over_async(self.elis_api_client.list_all_users(ordering, **filters))
Expand All @@ -285,7 +285,7 @@ def list_all_annotations(
ordering: Sequence[str] = (),
sideloads: Sequence[str] = (),
content_schema_ids: Sequence[str] = (),
**filters: Dict[str, Any],
**filters: Any,
) -> Iterator[Annotation]:
"""https://elis.rossum.ai/api/docs/#list-all-annotations."""
return self._iter_over_async(
Expand Down Expand Up @@ -432,7 +432,7 @@ def create_new_document(
def list_all_workspaces(
self,
ordering: Sequence[str] = (),
**filters: Dict[str, Any],
**filters: Any,
) -> Iterator[Workspace]:
"""https://elis.rossum.ai/api/docs/#list-all-workspaces."""
return self._iter_over_async(self.elis_api_client.list_all_workspaces(ordering, **filters))
Expand Down Expand Up @@ -465,7 +465,7 @@ def create_new_inbox(
def list_all_connectors(
self,
ordering: Sequence[str] = (),
**filters: Dict[str, Any],
**filters: Any,
) -> Iterator[Connector]:
"""https://elis.rossum.ai/api/docs/#list-all-connectors."""
return self._iter_over_async(self.elis_api_client.list_all_connectors(ordering, **filters))
Expand All @@ -484,7 +484,7 @@ def create_new_connector(self, data: Dict[str, Any]) -> Connector:
def list_all_hooks(
self,
ordering: Sequence[str] = (),
**filters: Dict[str, Any],
**filters: Any,
) -> Iterator[Hook]:
"""https://elis.rossum.ai/api/docs/#list-all-hooks."""
return self._iter_over_async(self.elis_api_client.list_all_hooks(ordering, **filters))
Expand All @@ -501,7 +501,7 @@ def create_new_hook(self, data: Dict[str, Any]) -> Hook:
def list_all_user_roles(
self,
ordering: Sequence[str] = (),
**filters: Dict[str, Any],
**filters: Any,
) -> Iterator[Group]:
"""https://elis.rossum.ai/api/docs/#list-all-user-roles."""
return self._iter_over_async(self.elis_api_client.list_all_user_roles(ordering, **filters))
Expand Down

0 comments on commit 999c39e

Please sign in to comment.