Skip to content

Commit 26a73bd

Browse files
authored
Bump http-client-python 0.6.6 (#3015)
* Update dependencies (2025-01-16 21:52:21) * Regenerate for typespec-python (2025-01-16 21:56:37) * Regenerate for autorest.python (2025-01-16 22:10:53) * update version * add changelog * Regenerate * regenerate * update * update changelog --------- Co-authored-by: AutoPrFromHttpClientPython <AutoPrFromHttpClientPython>
1 parent ed2d480 commit 26a73bd

28 files changed

Lines changed: 663 additions & 655 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
changeKind: fix
3+
packages:
4+
- "@autorest/python"
5+
- "@azure-tools/typespec-python"
6+
---
7+
8+
Order keyword-only args overload first in generated operations

packages/autorest.python/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"homepage": "https://github.com/Azure/autorest.python/blob/main/README.md",
3131
"dependencies": {
32-
"@typespec/http-client-python": "~0.6.5",
32+
"@typespec/http-client-python": "~0.6.6",
3333
"@autorest/system-requirements": "~1.0.2",
3434
"fs-extra": "~11.2.0",
3535
"tsx": "~4.19.1"

packages/autorest.python/samples/specification/multiapi/generated/azure/multiapi/sample/_multiapi_service_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
class _SDKClient(object):
3131
def __init__(self, *args, **kwargs):
32-
"""This is a fake class to support current implemetation of MultiApiClientMixin."
32+
"""This is a fake class to support current implementation of MultiApiClientMixin."
3333
Will be removed in final version of multiapi azure-core based client
3434
"""
3535
pass

packages/autorest.python/samples/specification/multiapi/generated/azure/multiapi/sample/aio/_multiapi_service_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
class _SDKClient(object):
3131
def __init__(self, *args, **kwargs):
32-
"""This is a fake class to support current implemetation of MultiApiClientMixin."
32+
"""This is a fake class to support current implementation of MultiApiClientMixin."
3333
Will be removed in final version of multiapi azure-core based client
3434
"""
3535
pass

packages/typespec-python/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"js-yaml": "~4.1.0",
6161
"semver": "~7.6.2",
6262
"tsx": "~4.19.1",
63-
"@typespec/http-client-python": "~0.6.5",
63+
"@typespec/http-client-python": "~0.6.6",
6464
"fs-extra": "~11.2.0"
6565
},
6666
"devDependencies": {

packages/typespec-python/test/azure/generated/parameters-basic/parameters/basic/aio/operations/_operations.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,11 @@ def __init__(self, *args, **kwargs) -> None:
174174
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
175175

176176
@overload
177-
async def simple(self, body: JSON, *, content_type: str = "application/json", **kwargs: Any) -> None:
177+
async def simple(self, *, name: str, content_type: str = "application/json", **kwargs: Any) -> None:
178178
"""simple.
179179
180-
:param body: Required.
181-
:type body: JSON
180+
:keyword name: Required.
181+
:paramtype name: str
182182
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
183183
Default value is "application/json".
184184
:paramtype content_type: str
@@ -188,11 +188,11 @@ async def simple(self, body: JSON, *, content_type: str = "application/json", **
188188
"""
189189

190190
@overload
191-
async def simple(self, *, name: str, content_type: str = "application/json", **kwargs: Any) -> None:
191+
async def simple(self, body: JSON, *, content_type: str = "application/json", **kwargs: Any) -> None:
192192
"""simple.
193193
194-
:keyword name: Required.
195-
:paramtype name: str
194+
:param body: Required.
195+
:type body: JSON
196196
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
197197
Default value is "application/json".
198198
:paramtype content_type: str

packages/typespec-python/test/azure/generated/parameters-basic/parameters/basic/operations/_operations.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,11 @@ def __init__(self, *args, **kwargs):
206206
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
207207

208208
@overload
209-
def simple(self, body: JSON, *, content_type: str = "application/json", **kwargs: Any) -> None:
209+
def simple(self, *, name: str, content_type: str = "application/json", **kwargs: Any) -> None:
210210
"""simple.
211211
212-
:param body: Required.
213-
:type body: JSON
212+
:keyword name: Required.
213+
:paramtype name: str
214214
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
215215
Default value is "application/json".
216216
:paramtype content_type: str
@@ -220,11 +220,11 @@ def simple(self, body: JSON, *, content_type: str = "application/json", **kwargs
220220
"""
221221

222222
@overload
223-
def simple(self, *, name: str, content_type: str = "application/json", **kwargs: Any) -> None:
223+
def simple(self, body: JSON, *, content_type: str = "application/json", **kwargs: Any) -> None:
224224
"""simple.
225225
226-
:keyword name: Required.
227-
:paramtype name: str
226+
:param body: Required.
227+
:type body: JSON
228228
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
229229
Default value is "application/json".
230230
:paramtype content_type: str

packages/typespec-python/test/azure/generated/parameters-body-optionality/parameters/bodyoptionality/aio/operations/_operations.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -379,11 +379,11 @@ async def required_explicit(self, body: Union[_models.BodyModel, JSON, IO[bytes]
379379
return cls(pipeline_response, None, {}) # type: ignore
380380

381381
@overload
382-
async def required_implicit(self, body: JSON, *, content_type: str = "application/json", **kwargs: Any) -> None:
382+
async def required_implicit(self, *, name: str, content_type: str = "application/json", **kwargs: Any) -> None:
383383
"""required_implicit.
384384
385-
:param body: Required.
386-
:type body: JSON
385+
:keyword name: Required.
386+
:paramtype name: str
387387
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
388388
Default value is "application/json".
389389
:paramtype content_type: str
@@ -393,11 +393,11 @@ async def required_implicit(self, body: JSON, *, content_type: str = "applicatio
393393
"""
394394

395395
@overload
396-
async def required_implicit(self, *, name: str, content_type: str = "application/json", **kwargs: Any) -> None:
396+
async def required_implicit(self, body: JSON, *, content_type: str = "application/json", **kwargs: Any) -> None:
397397
"""required_implicit.
398398
399-
:keyword name: Required.
400-
:paramtype name: str
399+
:param body: Required.
400+
:type body: JSON
401401
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
402402
Default value is "application/json".
403403
:paramtype content_type: str

packages/typespec-python/test/azure/generated/parameters-body-optionality/parameters/bodyoptionality/operations/_operations.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -432,11 +432,11 @@ def required_explicit( # pylint: disable=inconsistent-return-statements
432432
return cls(pipeline_response, None, {}) # type: ignore
433433

434434
@overload
435-
def required_implicit(self, body: JSON, *, content_type: str = "application/json", **kwargs: Any) -> None:
435+
def required_implicit(self, *, name: str, content_type: str = "application/json", **kwargs: Any) -> None:
436436
"""required_implicit.
437437
438-
:param body: Required.
439-
:type body: JSON
438+
:keyword name: Required.
439+
:paramtype name: str
440440
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
441441
Default value is "application/json".
442442
:paramtype content_type: str
@@ -446,11 +446,11 @@ def required_implicit(self, body: JSON, *, content_type: str = "application/json
446446
"""
447447

448448
@overload
449-
def required_implicit(self, *, name: str, content_type: str = "application/json", **kwargs: Any) -> None:
449+
def required_implicit(self, body: JSON, *, content_type: str = "application/json", **kwargs: Any) -> None:
450450
"""required_implicit.
451451
452-
:keyword name: Required.
453-
:paramtype name: str
452+
:param body: Required.
453+
:type body: JSON
454454
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
455455
Default value is "application/json".
456456
:paramtype content_type: str

0 commit comments

Comments
 (0)