@@ -510,7 +510,6 @@ def _build_request(
510510 params = _merge_mappings (self .default_query , options .params )
511511 content_type = headers .get ("Content-Type" )
512512 files = options .files
513- content = options .content
514513
515514 # If the given Content-Type header is multipart/form-data then it
516515 # has to be removed so that httpx can generate the header with
@@ -581,7 +580,6 @@ def _build_request(
581580 # so that passing a `TypedDict` doesn't cause an error.
582581 # https://github.com/microsoft/pyright/issues/3526#event-6715453066
583582 params = self .qs .stringify (cast (Mapping [str , Any ], params )) if params else None ,
584- content = content ,
585583 ** kwargs ,
586584 )
587585
@@ -1290,11 +1288,7 @@ def post(
12901288 url = path ,
12911289 json_data = body ,
12921290 files = to_httpx_files (files ),
1293- content = (
1294- get_file_content (_transform_file (binary_request ))
1295- if binary_request is not None
1296- else content
1297- ),
1291+ content = (get_file_content (_transform_file (binary_request )) if binary_request is not None else content ),
12981292 ** options ,
12991293 )
13001294 return cast (ResponseT , self .request (cast_to , opts , stream = stream , stream_cls = stream_cls ))
@@ -1876,9 +1870,7 @@ async def post(
18761870 json_data = body ,
18771871 files = await async_to_httpx_files (files ),
18781872 content = (
1879- get_file_content (await _async_transform_file (binary_request ))
1880- if binary_request is not None
1881- else content
1873+ get_file_content (await _async_transform_file (binary_request )) if binary_request is not None else content
18821874 ),
18831875 ** options ,
18841876 )
0 commit comments