From 82d014c7ace8197a09f019fe33ebef6d26de4fe3 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Thu, 22 Jan 2026 22:44:41 -0600 Subject: [PATCH 1/2] Fix argument passing to GristClient.sql --- pygrist_mini/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pygrist_mini/__init__.py b/pygrist_mini/__init__.py index e0c6dba..0f984c9 100644 --- a/pygrist_mini/__init__.py +++ b/pygrist_mini/__init__.py @@ -123,14 +123,14 @@ def delete_records(self, table_id: str | int, ids: Sequence[int]) -> None: json=list(ids)) def sql( - self, query: str, args: dict[str, Any] | None = None, - timeout: float | None = None) -> Sequence[dict[str, Any]]: + self, query: str, args: Sequence[object] | None = None, + timeout: float | None = None) -> Sequence[dict[str, object]]: - json_body: dict[str, Any] = {"sql": query} + json_body: dict[str, object] = {"sql": query} if args is not None: json_body["args"] = args if timeout is not None: - json_body["timeout"] = args + json_body["timeout"] = timeout return [rec["fields"] for rec in self._post_json( f"/docs/{self.doc_id}/sql", From 1aa0cc1df020d77b213c34ad06519e577a1a35f2 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Thu, 22 Jan 2026 22:45:14 -0600 Subject: [PATCH 2/2] Bump version to 2026.1 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0c093b3..0d4482c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "pygrist_mini" -version = "2025.1.2" +version = "2026.1" authors = [ {name = "Andreas Kloeckner", email = "inform@tiker.net"}, ]