From e0588afa756f66653a9511a6b29b4b2eb4bca913 Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Tue, 17 Dec 2024 05:43:36 +0000 Subject: [PATCH 1/5] Update dependencies (2024-12-17 05:43:36) --- packages/autorest.python/package.json | 4 ++-- packages/typespec-python/package.json | 4 ++-- pnpm-lock.yaml | 15 ++++++++------- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index 89460a4e6f8..b69f0ed02ae 100644 --- a/packages/autorest.python/package.json +++ b/packages/autorest.python/package.json @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/autorest.python/blob/main/README.md", "dependencies": { - "@typespec/http-client-python": "~0.4.3", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDQxMjczNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.4.3.tgz", "@autorest/system-requirements": "~1.0.2", "fs-extra": "~11.2.0", "tsx": "~4.19.1" @@ -47,4 +47,4 @@ "requirements.txt", "generator/" ] -} +} \ No newline at end of file diff --git a/packages/typespec-python/package.json b/packages/typespec-python/package.json index c46d4200bd0..4241a1837f9 100644 --- a/packages/typespec-python/package.json +++ b/packages/typespec-python/package.json @@ -60,7 +60,7 @@ "js-yaml": "~4.1.0", "semver": "~7.6.2", "tsx": "~4.19.1", - "@typespec/http-client-python": "~0.4.3", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDQxMjczNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.4.3.tgz", "fs-extra": "~11.2.0" }, "devDependencies": { @@ -90,4 +90,4 @@ "chalk": "5.3.0", "@types/fs-extra": "11.0.4" } -} +} \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 61b9362090f..d42274626b8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -54,8 +54,8 @@ importers: specifier: ~1.0.2 version: 1.0.2 '@typespec/http-client-python': - specifier: ~0.4.3 - version: 0.4.3(3vals54vp74j2sypwpyzyguv24) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDQxMjczNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.4.3.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDQxMjczNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.4.3.tgz(3vals54vp74j2sypwpyzyguv24) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -76,8 +76,8 @@ importers: packages/typespec-python: dependencies: '@typespec/http-client-python': - specifier: ~0.4.3 - version: 0.4.3(3vals54vp74j2sypwpyzyguv24) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDQxMjczNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.4.3.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDQxMjczNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.4.3.tgz(3vals54vp74j2sypwpyzyguv24) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -1225,8 +1225,9 @@ packages: engines: {node: '>=18.0.0'} hasBin: true - '@typespec/http-client-python@0.4.3': - resolution: {integrity: sha512-4Zc1lE5Hpol4HpfSXGaUxO1qYPMv8A9EQclGn0LDzsc8kxo5cjxxJ0Fqzg14f/mGYfzE1mTus4aZ9kbKei8w7w==} + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDQxMjczNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.4.3.tgz': + resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDQxMjczNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.4.3.tgz} + version: 0.4.3 engines: {node: '>=18.0.0'} peerDependencies: '@azure-tools/typespec-autorest': '>=0.49.0 <1.0.0' @@ -4902,7 +4903,7 @@ snapshots: yaml: 2.5.1 yargs: 17.7.2 - '@typespec/http-client-python@0.4.3(3vals54vp74j2sypwpyzyguv24)': + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDQxMjczNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.4.3.tgz(3vals54vp74j2sypwpyzyguv24)': dependencies: '@azure-tools/typespec-autorest': 0.49.0(f6dpljntn5qjht2uh6yzcx3zty) '@azure-tools/typespec-azure-core': 0.49.0(@typespec/compiler@0.63.0)(@typespec/http@0.63.0(@typespec/compiler@0.63.0))(@typespec/rest@0.63.0(@typespec/compiler@0.63.0)(@typespec/http@0.63.0(@typespec/compiler@0.63.0))) From 15414cfe8086fc76395fc2c1a4f513633edafcd4 Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Tue, 17 Dec 2024 05:48:10 +0000 Subject: [PATCH 2/5] Regenerate for typespec-python (2024-12-17 05:48:10) --- .../additionalproperties/models/_models.py | 46 +++++++++---------- .../additionalproperties/models/_models.py | 46 +++++++++---------- 2 files changed, 46 insertions(+), 46 deletions(-) diff --git a/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/models/_models.py index 61a96282daf..656ca40d421 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/models/_models.py @@ -19,7 +19,7 @@ class DifferentSpreadFloatRecord(_model_base.Model): - """The model spread Record:code:`` with the different known property type. + """The model spread Record\\ :code:`` with the different known property type. :ivar name: The id property. Required. @@ -48,7 +48,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class DifferentSpreadFloatDerived(DifferentSpreadFloatRecord): - """The model extends from a model that spread Record:code:`` with the different known + """The model extends from a model that spread Record\\ :code:`` with the different known property type. @@ -143,7 +143,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class DifferentSpreadModelRecord(_model_base.Model): - """The model spread Record:code:`` with the different known property type. + """The model spread Record\\ :code:`` with the different known property type. :ivar known_prop: Required. @@ -172,7 +172,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class DifferentSpreadModelDerived(DifferentSpreadModelRecord): - """The model extends from a model that spread Record:code:`` with the different + """The model extends from a model that spread Record\\ :code:`` with the different known property type. @@ -205,7 +205,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class DifferentSpreadStringRecord(_model_base.Model): - """The model spread Record:code:`` with the different known property type. + """The model spread Record\\ :code:`` with the different known property type. :ivar id: The name property. Required. @@ -234,7 +234,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class DifferentSpreadStringDerived(DifferentSpreadStringRecord): - """The model extends from a model that spread Record:code:`` with the different known + """The model extends from a model that spread Record\\ :code:`` with the different known property type. @@ -267,7 +267,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ExtendsFloatAdditionalProperties(_model_base.Model): - """The model extends from Record:code:`` type. + """The model extends from Record\\ :code:`` type. :ivar id: The id property. Required. @@ -296,7 +296,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ExtendsModelAdditionalProperties(_model_base.Model): - """The model extends from Record:code:`` type. + """The model extends from Record\\ :code:`` type. :ivar known_prop: Required. @@ -354,7 +354,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ExtendsStringAdditionalProperties(_model_base.Model): - """The model extends from Record:code:`` type. + """The model extends from Record\\ :code:`` type. :ivar name: The name property. Required. @@ -383,7 +383,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ExtendsUnknownAdditionalProperties(_model_base.Model): - """The model extends from Record:code:`` type. + """The model extends from Record\\ :code:`` type. :ivar name: The name property. Required. @@ -412,7 +412,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ExtendsUnknownAdditionalPropertiesDerived(ExtendsUnknownAdditionalProperties): # pylint: disable=name-too-long - """The model extends from a type that extends from Record:code:``. + """The model extends from a type that extends from Record\\ :code:``. :ivar name: The name property. Required. @@ -449,7 +449,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ExtendsUnknownAdditionalPropertiesDiscriminated(_model_base.Model): # pylint: disable=name-too-long - """The model extends from Record:code:`` with a discriminator. + """The model extends from Record\\ :code:`` with a discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: ExtendsUnknownAdditionalPropertiesDiscriminatedDerived @@ -530,7 +530,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class IsFloatAdditionalProperties(_model_base.Model): - """The model is from Record:code:`` type. + """The model is from Record\\ :code:`` type. :ivar id: The id property. Required. @@ -559,7 +559,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class IsModelAdditionalProperties(_model_base.Model): - """The model is from Record:code:`` type. + """The model is from Record\\ :code:`` type. :ivar known_prop: Required. @@ -617,7 +617,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class IsStringAdditionalProperties(_model_base.Model): - """The model is from Record:code:`` type. + """The model is from Record\\ :code:`` type. :ivar name: The name property. Required. @@ -646,7 +646,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class IsUnknownAdditionalProperties(_model_base.Model): - """The model is from Record:code:`` type. + """The model is from Record\\ :code:`` type. :ivar name: The name property. Required. @@ -675,7 +675,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class IsUnknownAdditionalPropertiesDerived(IsUnknownAdditionalProperties): - """The model extends from a type that is Record:code:`` type. + """The model extends from a type that is Record\\ :code:`` type. :ivar name: The name property. Required. @@ -712,7 +712,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class IsUnknownAdditionalPropertiesDiscriminated(_model_base.Model): # pylint: disable=name-too-long - """The model is Record:code:`` with a discriminator. + """The model is Record\\ :code:`` with a discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: IsUnknownAdditionalPropertiesDiscriminatedDerived @@ -822,7 +822,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class MultipleSpreadRecord(_model_base.Model): - """The model spread Record:code:`` and Record:code:``. + """The model spread Record\\ :code:`` and Record\\ :code:``. :ivar flag: The name property. Required. @@ -851,7 +851,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class SpreadFloatRecord(_model_base.Model): - """The model spread Record:code:`` with the same known property type. + """The model spread Record\\ :code:`` with the same known property type. :ivar id: The id property. Required. @@ -909,7 +909,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class SpreadModelRecord(_model_base.Model): - """The model spread Record:code:`` with the same known property type. + """The model spread Record\\ :code:`` with the same known property type. :ivar known_prop: Required. @@ -938,7 +938,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class SpreadRecordForDiscriminatedUnion(_model_base.Model): - """The model spread Record:code:``. + """The model spread Record\\ :code:``. :ivar name: The name property. Required. @@ -1083,7 +1083,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class SpreadStringRecord(_model_base.Model): - """The model spread Record:code:`` with the same known property type. + """The model spread Record\\ :code:`` with the same known property type. :ivar name: The name property. Required. diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/models/_models.py index 558260c8f9e..c9fb0f703c0 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/models/_models.py @@ -19,7 +19,7 @@ class DifferentSpreadFloatRecord(_model_base.Model): - """The model spread Record:code:`` with the different known property type. + """The model spread Record\\ :code:`` with the different known property type. :ivar name: The id property. Required. @@ -48,7 +48,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class DifferentSpreadFloatDerived(DifferentSpreadFloatRecord): - """The model extends from a model that spread Record:code:`` with the different known + """The model extends from a model that spread Record\\ :code:`` with the different known property type. @@ -143,7 +143,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class DifferentSpreadModelRecord(_model_base.Model): - """The model spread Record:code:`` with the different known property type. + """The model spread Record\\ :code:`` with the different known property type. :ivar known_prop: Required. @@ -172,7 +172,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class DifferentSpreadModelDerived(DifferentSpreadModelRecord): - """The model extends from a model that spread Record:code:`` with the different + """The model extends from a model that spread Record\\ :code:`` with the different known property type. @@ -205,7 +205,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class DifferentSpreadStringRecord(_model_base.Model): - """The model spread Record:code:`` with the different known property type. + """The model spread Record\\ :code:`` with the different known property type. :ivar id: The name property. Required. @@ -234,7 +234,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class DifferentSpreadStringDerived(DifferentSpreadStringRecord): - """The model extends from a model that spread Record:code:`` with the different known + """The model extends from a model that spread Record\\ :code:`` with the different known property type. @@ -267,7 +267,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ExtendsFloatAdditionalProperties(_model_base.Model): - """The model extends from Record:code:`` type. + """The model extends from Record\\ :code:`` type. :ivar id: The id property. Required. @@ -296,7 +296,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ExtendsModelAdditionalProperties(_model_base.Model): - """The model extends from Record:code:`` type. + """The model extends from Record\\ :code:`` type. :ivar known_prop: Required. @@ -354,7 +354,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ExtendsStringAdditionalProperties(_model_base.Model): - """The model extends from Record:code:`` type. + """The model extends from Record\\ :code:`` type. :ivar name: The name property. Required. @@ -383,7 +383,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ExtendsUnknownAdditionalProperties(_model_base.Model): - """The model extends from Record:code:`` type. + """The model extends from Record\\ :code:`` type. :ivar name: The name property. Required. @@ -412,7 +412,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ExtendsUnknownAdditionalPropertiesDerived(ExtendsUnknownAdditionalProperties): # pylint: disable=name-too-long - """The model extends from a type that extends from Record:code:``. + """The model extends from a type that extends from Record\\ :code:``. :ivar name: The name property. Required. @@ -449,7 +449,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ExtendsUnknownAdditionalPropertiesDiscriminated(_model_base.Model): # pylint: disable=name-too-long - """The model extends from Record:code:`` with a discriminator. + """The model extends from Record\\ :code:`` with a discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: ExtendsUnknownAdditionalPropertiesDiscriminatedDerived @@ -530,7 +530,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class IsFloatAdditionalProperties(_model_base.Model): - """The model is from Record:code:`` type. + """The model is from Record\\ :code:`` type. :ivar id: The id property. Required. @@ -559,7 +559,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class IsModelAdditionalProperties(_model_base.Model): - """The model is from Record:code:`` type. + """The model is from Record\\ :code:`` type. :ivar known_prop: Required. @@ -617,7 +617,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class IsStringAdditionalProperties(_model_base.Model): - """The model is from Record:code:`` type. + """The model is from Record\\ :code:`` type. :ivar name: The name property. Required. @@ -646,7 +646,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class IsUnknownAdditionalProperties(_model_base.Model): - """The model is from Record:code:`` type. + """The model is from Record\\ :code:`` type. :ivar name: The name property. Required. @@ -675,7 +675,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class IsUnknownAdditionalPropertiesDerived(IsUnknownAdditionalProperties): - """The model extends from a type that is Record:code:`` type. + """The model extends from a type that is Record\\ :code:`` type. :ivar name: The name property. Required. @@ -712,7 +712,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class IsUnknownAdditionalPropertiesDiscriminated(_model_base.Model): # pylint: disable=name-too-long - """The model is Record:code:`` with a discriminator. + """The model is Record\\ :code:`` with a discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: IsUnknownAdditionalPropertiesDiscriminatedDerived @@ -822,7 +822,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class MultipleSpreadRecord(_model_base.Model): - """The model spread Record:code:`` and Record:code:``. + """The model spread Record\\ :code:`` and Record\\ :code:``. :ivar flag: The name property. Required. @@ -851,7 +851,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class SpreadFloatRecord(_model_base.Model): - """The model spread Record:code:`` with the same known property type. + """The model spread Record\\ :code:`` with the same known property type. :ivar id: The id property. Required. @@ -909,7 +909,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class SpreadModelRecord(_model_base.Model): - """The model spread Record:code:`` with the same known property type. + """The model spread Record\\ :code:`` with the same known property type. :ivar known_prop: Required. @@ -938,7 +938,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class SpreadRecordForDiscriminatedUnion(_model_base.Model): - """The model spread Record:code:``. + """The model spread Record\\ :code:``. :ivar name: The name property. Required. @@ -1083,7 +1083,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class SpreadStringRecord(_model_base.Model): - """The model spread Record:code:`` with the same known property type. + """The model spread Record\\ :code:`` with the same known property type. :ivar name: The name property. Required. From 46680851bfbc422233e74e75002b60561048fed8 Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Tue, 17 Dec 2024 06:02:54 +0000 Subject: [PATCH 3/5] Regenerate for autorest.python (2024-12-17 06:02:54) --- .../bodystring/aio/operations/_string_operations.py | 12 ++++++------ .../bodystring/operations/_string_operations.py | 12 ++++++------ .../aio/operations/_operations.py | 12 ++++++------ .../operations/_operations.py | 12 ++++++------ 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_string_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_string_operations.py index a4c21a4ad10..e9fab5d33a0 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_string_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_string_operations.py @@ -358,9 +358,9 @@ async def put_mbcs(self, **kwargs: Any) -> None: @distributed_trace_async async def get_whitespace(self, **kwargs: Any) -> str: - """Get string value with leading and trailing whitespace - ':code:``:code:``:code:``Now is the time for all good men to come to the aid - of their country:code:``:code:``:code:``'. + """Get string value with leading and trailing whitespace '\\ :code:``\\ :code:``\\ + :code:``Now is the time for all good men to come to the aid of their country\\ + :code:``\\ :code:``\\ :code:``'. :return: str or the result of cls(response) :rtype: str @@ -406,9 +406,9 @@ async def get_whitespace(self, **kwargs: Any) -> str: @distributed_trace_async async def put_whitespace(self, **kwargs: Any) -> None: - """Set String value with leading and trailing whitespace - ':code:``:code:``:code:``Now is the time for all good men to come to the aid - of their country:code:``:code:``:code:``'. + """Set String value with leading and trailing whitespace '\\ :code:``\\ :code:``\\ + :code:``Now is the time for all good men to come to the aid of their country\\ + :code:``\\ :code:``\\ :code:``'. :return: None or the result of cls(response) :rtype: None diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py index 73f79551303..989fd7c38b5 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py @@ -556,9 +556,9 @@ def put_mbcs(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-retur @distributed_trace def get_whitespace(self, **kwargs: Any) -> str: - """Get string value with leading and trailing whitespace - ':code:``:code:``:code:``Now is the time for all good men to come to the aid - of their country:code:``:code:``:code:``'. + """Get string value with leading and trailing whitespace '\\ :code:``\\ :code:``\\ + :code:``Now is the time for all good men to come to the aid of their country\\ + :code:``\\ :code:``\\ :code:``'. :return: str or the result of cls(response) :rtype: str @@ -604,9 +604,9 @@ def get_whitespace(self, **kwargs: Any) -> str: @distributed_trace def put_whitespace(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """Set String value with leading and trailing whitespace - ':code:``:code:``:code:``Now is the time for all good men to come to the aid - of their country:code:``:code:``:code:``'. + """Set String value with leading and trailing whitespace '\\ :code:``\\ :code:``\\ + :code:``Now is the time for all good men to come to the aid of their country\\ + :code:``\\ :code:``\\ :code:``'. :return: None or the result of cls(response) :rtype: None diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/aio/operations/_operations.py index 1ae9a843943..12d11acfb42 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/aio/operations/_operations.py @@ -367,9 +367,9 @@ async def put_mbcs(self, **kwargs: Any) -> None: @distributed_trace_async async def get_whitespace(self, **kwargs: Any) -> str: - """Get string value with leading and trailing whitespace - ':code:``:code:``:code:``Now is the time for all good men to come to the aid - of their country:code:``:code:``:code:``'. + """Get string value with leading and trailing whitespace '\\ :code:``\\ :code:``\\ + :code:``Now is the time for all good men to come to the aid of their country\\ + :code:``\\ :code:``\\ :code:``'. :return: str :rtype: str @@ -417,9 +417,9 @@ async def get_whitespace(self, **kwargs: Any) -> str: @distributed_trace_async async def put_whitespace(self, **kwargs: Any) -> None: - """Set String value with leading and trailing whitespace - ':code:``:code:``:code:``Now is the time for all good men to come to the aid - of their country:code:``:code:``:code:``'. + """Set String value with leading and trailing whitespace '\\ :code:``\\ :code:``\\ + :code:``Now is the time for all good men to come to the aid of their country\\ + :code:``\\ :code:``\\ :code:``'. :return: None :rtype: None diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/operations/_operations.py index 6ccaba03267..b7f39b29887 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/operations/_operations.py @@ -654,9 +654,9 @@ def put_mbcs(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-retur @distributed_trace def get_whitespace(self, **kwargs: Any) -> str: - """Get string value with leading and trailing whitespace - ':code:``:code:``:code:``Now is the time for all good men to come to the aid - of their country:code:``:code:``:code:``'. + """Get string value with leading and trailing whitespace '\\ :code:``\\ :code:``\\ + :code:``Now is the time for all good men to come to the aid of their country\\ + :code:``\\ :code:``\\ :code:``'. :return: str :rtype: str @@ -704,9 +704,9 @@ def get_whitespace(self, **kwargs: Any) -> str: @distributed_trace def put_whitespace(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """Set String value with leading and trailing whitespace - ':code:``:code:``:code:``Now is the time for all good men to come to the aid - of their country:code:``:code:``:code:``'. + """Set String value with leading and trailing whitespace '\\ :code:``\\ :code:``\\ + :code:``Now is the time for all good men to come to the aid of their country\\ + :code:``\\ :code:``\\ :code:``'. :return: None :rtype: None From 5a75eee8b0165cf6a02a690ef0ccfab123d24dd2 Mon Sep 17 00:00:00 2001 From: msyyc <70930885+msyyc@users.noreply.github.com> Date: Tue, 17 Dec 2024 17:55:03 +0800 Subject: [PATCH 4/5] update package.json --- packages/autorest.python/package.json | 4 ++-- packages/typespec-python/package.json | 4 ++-- pnpm-lock.yaml | 15 +++++++-------- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index b69f0ed02ae..c3a0fe000f7 100644 --- a/packages/autorest.python/package.json +++ b/packages/autorest.python/package.json @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/autorest.python/blob/main/README.md", "dependencies": { - "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDQxMjczNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.4.3.tgz", + "@typespec/http-client-python": "~0.4.4", "@autorest/system-requirements": "~1.0.2", "fs-extra": "~11.2.0", "tsx": "~4.19.1" @@ -47,4 +47,4 @@ "requirements.txt", "generator/" ] -} \ No newline at end of file +} diff --git a/packages/typespec-python/package.json b/packages/typespec-python/package.json index 4241a1837f9..aec2f7e9efe 100644 --- a/packages/typespec-python/package.json +++ b/packages/typespec-python/package.json @@ -60,7 +60,7 @@ "js-yaml": "~4.1.0", "semver": "~7.6.2", "tsx": "~4.19.1", - "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDQxMjczNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.4.3.tgz", + "@typespec/http-client-python": "~0.4.4", "fs-extra": "~11.2.0" }, "devDependencies": { @@ -90,4 +90,4 @@ "chalk": "5.3.0", "@types/fs-extra": "11.0.4" } -} \ No newline at end of file +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d42274626b8..f650ebf3f53 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -54,8 +54,8 @@ importers: specifier: ~1.0.2 version: 1.0.2 '@typespec/http-client-python': - specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDQxMjczNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.4.3.tgz - version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDQxMjczNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.4.3.tgz(3vals54vp74j2sypwpyzyguv24) + specifier: ~0.4.4 + version: 0.4.4(3vals54vp74j2sypwpyzyguv24) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -76,8 +76,8 @@ importers: packages/typespec-python: dependencies: '@typespec/http-client-python': - specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDQxMjczNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.4.3.tgz - version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDQxMjczNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.4.3.tgz(3vals54vp74j2sypwpyzyguv24) + specifier: ~0.4.4 + version: 0.4.4(3vals54vp74j2sypwpyzyguv24) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -1225,9 +1225,8 @@ packages: engines: {node: '>=18.0.0'} hasBin: true - '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDQxMjczNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.4.3.tgz': - resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDQxMjczNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.4.3.tgz} - version: 0.4.3 + '@typespec/http-client-python@0.4.4': + resolution: {integrity: sha512-zp9MawS7VstDuNkCyrNNuE4e3nFmAsz05dPc/GvhREpSQbsZCkagssiAx24O1deElvhsVOp6Iy0XMXtR75PRVQ==} engines: {node: '>=18.0.0'} peerDependencies: '@azure-tools/typespec-autorest': '>=0.49.0 <1.0.0' @@ -4903,7 +4902,7 @@ snapshots: yaml: 2.5.1 yargs: 17.7.2 - '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDQxMjczNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.4.3.tgz(3vals54vp74j2sypwpyzyguv24)': + '@typespec/http-client-python@0.4.4(3vals54vp74j2sypwpyzyguv24)': dependencies: '@azure-tools/typespec-autorest': 0.49.0(f6dpljntn5qjht2uh6yzcx3zty) '@azure-tools/typespec-azure-core': 0.49.0(@typespec/compiler@0.63.0)(@typespec/http@0.63.0(@typespec/compiler@0.63.0))(@typespec/rest@0.63.0(@typespec/compiler@0.63.0)(@typespec/http@0.63.0(@typespec/compiler@0.63.0))) From f45b7df1b4244b29bf639dd7ecfa8f980dcc69e4 Mon Sep 17 00:00:00 2001 From: msyyc <70930885+msyyc@users.noreply.github.com> Date: Tue, 17 Dec 2024 17:55:44 +0800 Subject: [PATCH 5/5] update changelog --- .chronus/changes/auto-m2r_code_fix-2024-11-17-17-55-36.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .chronus/changes/auto-m2r_code_fix-2024-11-17-17-55-36.md diff --git a/.chronus/changes/auto-m2r_code_fix-2024-11-17-17-55-36.md b/.chronus/changes/auto-m2r_code_fix-2024-11-17-17-55-36.md new file mode 100644 index 00000000000..529a41d294e --- /dev/null +++ b/.chronus/changes/auto-m2r_code_fix-2024-11-17-17-55-36.md @@ -0,0 +1,8 @@ +--- +changeKind: fix +packages: + - "@autorest/python" + - "@azure-tools/typespec-python" +--- + +`:code:` in docstring should always be preceded by `\` \ No newline at end of file