From 2ca84683259d822da5e334d6942c37df050aac13 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Tue, 17 Dec 2024 18:32:02 +0800 Subject: [PATCH] [Python] Fix incorrect code escape in M2R (#2973) * Update dependencies (2024-12-17 05:43:36) * Regenerate for typespec-python (2024-12-17 05:48:10) * Regenerate for autorest.python (2024-12-17 06:02:54) * update package.json * update changelog --------- Co-authored-by: AutoPrFromHttpClientPython --- .../auto-m2r_code_fix-2024-11-17-17-55-36.md | 8 ++++ packages/autorest.python/package.json | 2 +- .../aio/operations/_string_operations.py | 12 ++--- .../operations/_string_operations.py | 12 ++--- .../aio/operations/_operations.py | 12 ++--- .../operations/_operations.py | 12 ++--- packages/typespec-python/package.json | 2 +- .../additionalproperties/models/_models.py | 46 +++++++++---------- .../additionalproperties/models/_models.py | 46 +++++++++---------- pnpm-lock.yaml | 14 +++--- 10 files changed, 87 insertions(+), 79 deletions(-) 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 0000000000..529a41d294 --- /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 diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index 89460a4e6f..c3a0fe000f 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": "~0.4.4", "@autorest/system-requirements": "~1.0.2", "fs-extra": "~11.2.0", "tsx": "~4.19.1" 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 a4c21a4ad1..e9fab5d33a 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 73f7955130..989fd7c38b 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 1ae9a84394..12d11acfb4 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 6ccaba0326..b7f39b2988 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 diff --git a/packages/typespec-python/package.json b/packages/typespec-python/package.json index c46d4200bd..aec2f7e9ef 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": "~0.4.4", "fs-extra": "~11.2.0" }, "devDependencies": { 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 61a96282da..656ca40d42 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 558260c8f9..c9fb0f703c 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. diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 61b9362090..f650ebf3f5 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: ~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: ~0.4.3 - version: 0.4.3(3vals54vp74j2sypwpyzyguv24) + specifier: ~0.4.4 + version: 0.4.4(3vals54vp74j2sypwpyzyguv24) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -1225,8 +1225,8 @@ packages: engines: {node: '>=18.0.0'} hasBin: true - '@typespec/http-client-python@0.4.3': - resolution: {integrity: sha512-4Zc1lE5Hpol4HpfSXGaUxO1qYPMv8A9EQclGn0LDzsc8kxo5cjxxJ0Fqzg14f/mGYfzE1mTus4aZ9kbKei8w7w==} + '@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' @@ -4902,7 +4902,7 @@ snapshots: yaml: 2.5.1 yargs: 17.7.2 - '@typespec/http-client-python@0.4.3(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)))