Skip to content

Commit c97eb1b

Browse files
Removed duplicate ORs (#89)
* Removed duplicate ORs * Reverted type change * Bumped version
1 parent 0ca17da commit c97eb1b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

polyapi/poly_tables.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def update_one(*, id: str, where: Optional[{table_name}WhereFilter], data: {tabl
315315
@staticmethod
316316
def update_one(*args, **kwargs) -> {table_name}Row:
317317
if args:
318-
if len(args) != 2 or or not isinstance(args[0], str) not isinstance(args[1], dict):
318+
if len(args) != 2 or not isinstance(args[0], str) or not isinstance(args[1], dict):
319319
raise TypeError("Expected id and query as arguments or as kwargs")
320320
query = args[1]
321321
if not isinstance(query["where"], dict):
@@ -356,7 +356,7 @@ def delete_one(*, where: Optional[{table_name}WhereFilter]) -> PolyDeleteResult:
356356
@staticmethod
357357
def delete_one(*args, **kwargs) -> PolyDeleteResult:
358358
if args:
359-
if len(args) != 2 or or not isinstance(args[0], str) not isinstance(args[1], dict):
359+
if len(args) != 2 or not isinstance(args[0], str) or not isinstance(args[1], dict):
360360
raise TypeError("Expected id and query as arguments or as kwargs")
361361
query = args[1]
362362
if not isinstance(query["where"], dict):

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["setuptools>=61.2", "wheel"]
33

44
[project]
55
name = "polyapi-python"
6-
version = "0.3.11"
6+
version = "0.3.12.dev1"
77
description = "The Python Client for PolyAPI, the IPaaS by Developers for Developers"
88
authors = [{ name = "Dan Fellin", email = "[email protected]" }]
99
dependencies = [

tests/test_tabi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def update_one(*, id: str, where: Optional[MyTableWhereFilter], data: MyTableSub
295295
@staticmethod
296296
def update_one(*args, **kwargs) -> MyTableRow:
297297
if args:
298-
if len(args) != 2 or or not isinstance(args[0], str) not isinstance(args[1], dict):
298+
if len(args) != 2 or not isinstance(args[0], str) or not isinstance(args[1], dict):
299299
raise TypeError("Expected id and query as arguments or as kwargs")
300300
query = args[1]
301301
if not isinstance(query["where"], dict):
@@ -336,7 +336,7 @@ def delete_one(*, where: Optional[MyTableWhereFilter]) -> PolyDeleteResult: ...
336336
@staticmethod
337337
def delete_one(*args, **kwargs) -> PolyDeleteResult:
338338
if args:
339-
if len(args) != 2 or or not isinstance(args[0], str) not isinstance(args[1], dict):
339+
if len(args) != 2 or not isinstance(args[0], str) or not isinstance(args[1], dict):
340340
raise TypeError("Expected id and query as arguments or as kwargs")
341341
query = args[1]
342342
if not isinstance(query["where"], dict):

0 commit comments

Comments
 (0)