Skip to content

Commit 3329234

Browse files
fix: update upsert type (#307)
Co-authored-by: [email protected] <[email protected]>
1 parent 488721a commit 3329234

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

postgrest/_async/request_builder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def insert(
279279

280280
def upsert(
281281
self,
282-
json: dict,
282+
json: Union[dict, list],
283283
*,
284284
count: Optional[CountMethod] = None,
285285
returning: ReturnMethod = ReturnMethod.representation,

postgrest/_sync/request_builder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def insert(
279279

280280
def upsert(
281281
self,
282-
json: dict,
282+
json: Union[dict, list],
283283
*,
284284
count: Optional[CountMethod] = None,
285285
returning: ReturnMethod = ReturnMethod.representation,

0 commit comments

Comments
 (0)