Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix typing of filters kwargs in sync client #78

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading