Skip to content

Commit 228fe53

Browse files
fix: update types for insert (#187)
Co-authored-by: [email protected] <[email protected]>
1 parent 08f156a commit 228fe53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

postgrest/_async/request_builder.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from typing import Optional
3+
from typing import Optional, Union
44

55
from httpx import Headers, QueryParams
66
from pydantic import ValidationError
@@ -229,7 +229,7 @@ def select(
229229

230230
def insert(
231231
self,
232-
json: dict,
232+
json: Union[dict, list],
233233
*,
234234
count: Optional[CountMethod] = None,
235235
returning: ReturnMethod = ReturnMethod.representation,

0 commit comments

Comments
 (0)