From 0c34bf106b450858cd3c9defe2b120ec3016e895 Mon Sep 17 00:00:00 2001 From: Daniel Estoll Date: Fri, 5 Dec 2025 15:05:32 -0800 Subject: [PATCH 1/3] Removed duplicate ORs --- polyapi/poly_tables.py | 4 ++-- tests/test_tabi.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/polyapi/poly_tables.py b/polyapi/poly_tables.py index c4c0b68..4c00a72 100644 --- a/polyapi/poly_tables.py +++ b/polyapi/poly_tables.py @@ -315,7 +315,7 @@ def update_one(*, id: str, where: Optional[{table_name}WhereFilter], data: {tabl @staticmethod def update_one(*args, **kwargs) -> {table_name}Row: if args: - if len(args) != 2 or or not isinstance(args[0], str) not isinstance(args[1], dict): + if len(args) != 2 or not isinstance(args[0], str) or not isinstance(args[1], dict): raise TypeError("Expected id and query as arguments or as kwargs") query = args[1] if not isinstance(query["where"], dict): @@ -356,7 +356,7 @@ def delete_one(*, where: Optional[{table_name}WhereFilter]) -> PolyDeleteResult: @staticmethod def delete_one(*args, **kwargs) -> PolyDeleteResult: if args: - if len(args) != 2 or or not isinstance(args[0], str) not isinstance(args[1], dict): + if len(args) != 2 or not isinstance(args[0], str) or not isinstance(args[1], dict): raise TypeError("Expected id and query as arguments or as kwargs") query = args[1] if not isinstance(query["where"], dict): diff --git a/tests/test_tabi.py b/tests/test_tabi.py index 24f1710..d2b4ad0 100644 --- a/tests/test_tabi.py +++ b/tests/test_tabi.py @@ -57,7 +57,7 @@ class MyTableRow(TypedDict, total=False): active: Required[bool] """ Required property """ - optional: dict[str, Any] + optional: Dict[str, Any] @@ -295,7 +295,7 @@ def update_one(*, id: str, where: Optional[MyTableWhereFilter], data: MyTableSub @staticmethod def update_one(*args, **kwargs) -> MyTableRow: if args: - if len(args) != 2 or or not isinstance(args[0], str) not isinstance(args[1], dict): + if len(args) != 2 or not isinstance(args[0], str) or not isinstance(args[1], dict): raise TypeError("Expected id and query as arguments or as kwargs") query = args[1] if not isinstance(query["where"], dict): @@ -336,7 +336,7 @@ def delete_one(*, where: Optional[MyTableWhereFilter]) -> PolyDeleteResult: ... @staticmethod def delete_one(*args, **kwargs) -> PolyDeleteResult: if args: - if len(args) != 2 or or not isinstance(args[0], str) not isinstance(args[1], dict): + if len(args) != 2 or not isinstance(args[0], str) or not isinstance(args[1], dict): raise TypeError("Expected id and query as arguments or as kwargs") query = args[1] if not isinstance(query["where"], dict): From 4f948719e1d7707df2b289e971feefe3fb2a5422 Mon Sep 17 00:00:00 2001 From: Daniel Estoll Date: Tue, 30 Dec 2025 11:22:59 -0700 Subject: [PATCH 2/3] Reverted type change --- tests/test_tabi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_tabi.py b/tests/test_tabi.py index d2b4ad0..d81d0f8 100644 --- a/tests/test_tabi.py +++ b/tests/test_tabi.py @@ -57,7 +57,7 @@ class MyTableRow(TypedDict, total=False): active: Required[bool] """ Required property """ - optional: Dict[str, Any] + optional: dict[str, Any] From 308d3edb19728cd195099c2ab6a2c88d75e33fe5 Mon Sep 17 00:00:00 2001 From: Daniel Estoll Date: Wed, 31 Dec 2025 15:18:09 -0700 Subject: [PATCH 3/3] Bumped version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f785070..0bb6d31 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=61.2", "wheel"] [project] name = "polyapi-python" -version = "0.3.11" +version = "0.3.12.dev1" description = "The Python Client for PolyAPI, the IPaaS by Developers for Developers" authors = [{ name = "Dan Fellin", email = "dan@polyapi.io" }] dependencies = [