Skip to content

Commit 8ffa56c

Browse files
chore(internal): add missing files argument to base client
1 parent 9ac1364 commit 8ffa56c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/gradient/_base_client.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,9 +1267,12 @@ def patch(
12671267
*,
12681268
cast_to: Type[ResponseT],
12691269
body: Body | None = None,
1270+
files: RequestFiles | None = None,
12701271
options: RequestOptions = {},
12711272
) -> ResponseT:
1272-
opts = FinalRequestOptions.construct(method="patch", url=path, json_data=body, **options)
1273+
opts = FinalRequestOptions.construct(
1274+
method="patch", url=path, json_data=body, files=to_httpx_files(files), **options
1275+
)
12731276
return self.request(cast_to, opts)
12741277

12751278
def put(
@@ -1805,9 +1808,12 @@ async def patch(
18051808
*,
18061809
cast_to: Type[ResponseT],
18071810
body: Body | None = None,
1811+
files: RequestFiles | None = None,
18081812
options: RequestOptions = {},
18091813
) -> ResponseT:
1810-
opts = FinalRequestOptions.construct(method="patch", url=path, json_data=body, **options)
1814+
opts = FinalRequestOptions.construct(
1815+
method="patch", url=path, json_data=body, files=to_httpx_files(files), **options
1816+
)
18111817
return await self.request(cast_to, opts)
18121818

18131819
async def put(

0 commit comments

Comments
 (0)