Skip to content

Commit

Permalink
fix: update upsert type (#307)
Browse files Browse the repository at this point in the history
Co-authored-by: joel@joellee.org <joel@joellee.org>
  • Loading branch information
J0 and joel@joellee.org committed Sep 16, 2023
1 parent 488721a commit 3329234
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion postgrest/_async/request_builder.py
Expand Up @@ -279,7 +279,7 @@ def insert(

def upsert(
self,
json: dict,
json: Union[dict, list],
*,
count: Optional[CountMethod] = None,
returning: ReturnMethod = ReturnMethod.representation,
Expand Down
2 changes: 1 addition & 1 deletion postgrest/_sync/request_builder.py
Expand Up @@ -279,7 +279,7 @@ def insert(

def upsert(
self,
json: dict,
json: Union[dict, list],
*,
count: Optional[CountMethod] = None,
returning: ReturnMethod = ReturnMethod.representation,
Expand Down

0 comments on commit 3329234

Please sign in to comment.