Skip to content

Commit 770853a

Browse files
chore(internal): add missing files argument to base client
1 parent 00ebddd commit 770853a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/orb/_base_client.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,9 +1262,12 @@ def patch(
12621262
*,
12631263
cast_to: Type[ResponseT],
12641264
body: Body | None = None,
1265+
files: RequestFiles | None = None,
12651266
options: RequestOptions = {},
12661267
) -> ResponseT:
1267-
opts = FinalRequestOptions.construct(method="patch", url=path, json_data=body, **options)
1268+
opts = FinalRequestOptions.construct(
1269+
method="patch", url=path, json_data=body, files=to_httpx_files(files), **options
1270+
)
12681271
return self.request(cast_to, opts)
12691272

12701273
def put(
@@ -1796,9 +1799,12 @@ async def patch(
17961799
*,
17971800
cast_to: Type[ResponseT],
17981801
body: Body | None = None,
1802+
files: RequestFiles | None = None,
17991803
options: RequestOptions = {},
18001804
) -> ResponseT:
1801-
opts = FinalRequestOptions.construct(method="patch", url=path, json_data=body, **options)
1805+
opts = FinalRequestOptions.construct(
1806+
method="patch", url=path, json_data=body, files=to_httpx_files(files), **options
1807+
)
18021808
return await self.request(cast_to, opts)
18031809

18041810
async def put(

0 commit comments

Comments
 (0)