diff --git a/.chronus/changes/python-storagePagingFix-2026-0-26-16-51-19.md b/.chronus/changes/python-storagePagingFix-2026-0-26-16-51-19.md new file mode 100644 index 00000000000..64d71fba57a --- /dev/null +++ b/.chronus/changes/python-storagePagingFix-2026-0-26-16-51-19.md @@ -0,0 +1,8 @@ +--- +changeKind: fix +packages: + - "@autorest/python" + - "@azure-tools/typespec-python" +--- + +Fix additional indentation issues \ No newline at end of file diff --git a/.chronus/changes/python-xmlErrorDeserialization-2026-0-28-11-40-34.md b/.chronus/changes/python-xmlErrorDeserialization-2026-0-28-11-40-34.md new file mode 100644 index 00000000000..8daa3e8b868 --- /dev/null +++ b/.chronus/changes/python-xmlErrorDeserialization-2026-0-28-11-40-34.md @@ -0,0 +1,8 @@ +--- +changeKind: fix +packages: + - "@autorest/python" + - "@azure-tools/typespec-python" +--- + +`_failsafe_deserialize_xml` xml errors \ No newline at end of file diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index 1c69335bc82..d1ef88e2f09 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/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgwNDUwNy9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.0.tgz", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgwOTQ5MC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.0.tgz", "@autorest/system-requirements": "~1.0.2", "fs-extra": "~11.2.0", "tsx": "~4.19.1" diff --git a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenInitialVersionTolerant/dpgservicedriveninitialversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenInitialVersionTolerant/dpgservicedriveninitialversiontolerant/aio/operations/_operations.py index a11b4a093d9..d8431995361 100644 --- a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenInitialVersionTolerant/dpgservicedriveninitialversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenInitialVersionTolerant/dpgservicedriveninitialversiontolerant/aio/operations/_operations.py @@ -57,8 +57,8 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def head_no_params(self, **kwargs: Any) -> JSON: - """Head request, no params. - Initially has no query parameters. After evolution, a new optional query parameter is added. + """Head request, no params. Initially has no query parameters. After evolution, a new optional + query parameter is added. :return: JSON :rtype: JSON @@ -106,9 +106,8 @@ async def head_no_params(self, **kwargs: Any) -> JSON: @distributed_trace_async async def get_required(self, *, parameter: str, **kwargs: Any) -> JSON: - """Get true Boolean value on path. - Initially only has one required Query Parameter. After evolution, a new optional query - parameter is added. + """Get true Boolean value on path. Initially only has one required Query Parameter. After + evolution, a new optional query parameter is added. :keyword parameter: I am a required parameter. Required. :paramtype parameter: str @@ -327,9 +326,8 @@ async def post_parameters(self, parameter: Union[JSON, IO[bytes]], **kwargs: Any @distributed_trace_async async def get_optional(self, *, optional_param: Optional[str] = None, **kwargs: Any) -> JSON: - """Get true Boolean value on path. - Initially has one optional query parameter. After evolution, a new optional query parameter is - added. + """Get true Boolean value on path. Initially has one optional query parameter. After evolution, a + new optional query parameter is added. :keyword optional_param: I am an optional parameter. Default value is None. :paramtype optional_param: str diff --git a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenInitialVersionTolerant/dpgservicedriveninitialversiontolerant/operations/_operations.py b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenInitialVersionTolerant/dpgservicedriveninitialversiontolerant/operations/_operations.py index d0fba17fa36..a54281a197c 100644 --- a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenInitialVersionTolerant/dpgservicedriveninitialversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenInitialVersionTolerant/dpgservicedriveninitialversiontolerant/operations/_operations.py @@ -143,8 +143,8 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace def head_no_params(self, **kwargs: Any) -> JSON: - """Head request, no params. - Initially has no query parameters. After evolution, a new optional query parameter is added. + """Head request, no params. Initially has no query parameters. After evolution, a new optional + query parameter is added. :return: JSON :rtype: JSON @@ -192,9 +192,8 @@ def head_no_params(self, **kwargs: Any) -> JSON: @distributed_trace def get_required(self, *, parameter: str, **kwargs: Any) -> JSON: - """Get true Boolean value on path. - Initially only has one required Query Parameter. After evolution, a new optional query - parameter is added. + """Get true Boolean value on path. Initially only has one required Query Parameter. After + evolution, a new optional query parameter is added. :keyword parameter: I am a required parameter. Required. :paramtype parameter: str @@ -411,9 +410,8 @@ def post_parameters(self, parameter: Union[JSON, IO[bytes]], **kwargs: Any) -> J @distributed_trace def get_optional(self, *, optional_param: Optional[str] = None, **kwargs: Any) -> JSON: - """Get true Boolean value on path. - Initially has one optional query parameter. After evolution, a new optional query parameter is - added. + """Get true Boolean value on path. Initially has one optional query parameter. After evolution, a + new optional query parameter is added. :keyword optional_param: I am an optional parameter. Default value is None. :paramtype optional_param: str diff --git a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenUpdateOneVersionTolerant/dpgservicedrivenupdateoneversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenUpdateOneVersionTolerant/dpgservicedrivenupdateoneversiontolerant/aio/operations/_operations.py index 9a47993eed5..466e1740b0b 100644 --- a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenUpdateOneVersionTolerant/dpgservicedrivenupdateoneversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenUpdateOneVersionTolerant/dpgservicedrivenupdateoneversiontolerant/aio/operations/_operations.py @@ -111,9 +111,8 @@ async def head_no_params(self, *, new_parameter: Optional[str] = None, **kwargs: @distributed_trace_async async def get_required(self, *, parameter: str, new_parameter: Optional[str] = None, **kwargs: Any) -> JSON: - """Get true Boolean value on path. - Initially only has one required Query Parameter. After evolution, a new optional query - parameter is added. + """Get true Boolean value on path. Initially only has one required Query Parameter. After + evolution, a new optional query parameter is added. :keyword parameter: I am a required parameter. Required. :paramtype parameter: str @@ -346,9 +345,8 @@ async def post_parameters(self, parameter: Union[JSON, IO[bytes]], **kwargs: Any @distributed_trace_async async def delete_parameters(self, **kwargs: Any) -> None: - """Delete something. - Initially the path exists but there is no delete method. After evolution this is a new method - in a known path. + """Delete something. Initially the path exists but there is no delete method. After evolution this + is a new method in a known path. :return: None :rtype: None @@ -391,9 +389,8 @@ async def delete_parameters(self, **kwargs: Any) -> None: async def get_optional( self, *, optional_param: Optional[str] = None, new_parameter: Optional[str] = None, **kwargs: Any ) -> JSON: - """Get true Boolean value on path. - Initially has one optional query parameter. After evolution, a new optional query parameter is - added. + """Get true Boolean value on path. Initially has one optional query parameter. After evolution, a + new optional query parameter is added. :keyword optional_param: I am an optional parameter. Default value is None. :paramtype optional_param: str @@ -447,9 +444,8 @@ async def get_optional( @distributed_trace_async async def get_new_operation(self, **kwargs: Any) -> JSON: - """I'm a new operation. - Initiallty neither path or method exist for this operation. After evolution, this is a new - method in a new path. + """I'm a new operation. Initiallty neither path or method exist for this operation. After + evolution, this is a new method in a new path. :return: JSON :rtype: JSON diff --git a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenUpdateOneVersionTolerant/dpgservicedrivenupdateoneversiontolerant/operations/_operations.py b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenUpdateOneVersionTolerant/dpgservicedrivenupdateoneversiontolerant/operations/_operations.py index 5fb01fb551d..3ffe49becda 100644 --- a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenUpdateOneVersionTolerant/dpgservicedrivenupdateoneversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenUpdateOneVersionTolerant/dpgservicedrivenupdateoneversiontolerant/operations/_operations.py @@ -231,9 +231,8 @@ def head_no_params(self, *, new_parameter: Optional[str] = None, **kwargs: Any) @distributed_trace def get_required(self, *, parameter: str, new_parameter: Optional[str] = None, **kwargs: Any) -> JSON: - """Get true Boolean value on path. - Initially only has one required Query Parameter. After evolution, a new optional query - parameter is added. + """Get true Boolean value on path. Initially only has one required Query Parameter. After + evolution, a new optional query parameter is added. :keyword parameter: I am a required parameter. Required. :paramtype parameter: str @@ -466,9 +465,8 @@ def post_parameters(self, parameter: Union[JSON, IO[bytes]], **kwargs: Any) -> J @distributed_trace def delete_parameters(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """Delete something. - Initially the path exists but there is no delete method. After evolution this is a new method - in a known path. + """Delete something. Initially the path exists but there is no delete method. After evolution this + is a new method in a known path. :return: None :rtype: None @@ -511,9 +509,8 @@ def delete_parameters(self, **kwargs: Any) -> None: # pylint: disable=inconsist def get_optional( self, *, optional_param: Optional[str] = None, new_parameter: Optional[str] = None, **kwargs: Any ) -> JSON: - """Get true Boolean value on path. - Initially has one optional query parameter. After evolution, a new optional query parameter is - added. + """Get true Boolean value on path. Initially has one optional query parameter. After evolution, a + new optional query parameter is added. :keyword optional_param: I am an optional parameter. Default value is None. :paramtype optional_param: str @@ -567,9 +564,8 @@ def get_optional( @distributed_trace def get_new_operation(self, **kwargs: Any) -> JSON: - """I'm a new operation. - Initiallty neither path or method exist for this operation. After evolution, this is a new - method in a new path. + """I'm a new operation. Initiallty neither path or method exist for this operation. After + evolution, this is a new method in a new path. :return: JSON :rtype: JSON diff --git a/packages/typespec-python/package.json b/packages/typespec-python/package.json index b244704b3d0..1c40139ad17 100644 --- a/packages/typespec-python/package.json +++ b/packages/typespec-python/package.json @@ -67,7 +67,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/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgwNDUwNy9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.0.tgz", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgwOTQ5MC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.0.tgz", "fs-extra": "~11.2.0" }, "devDependencies": { diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/aio/operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/aio/operations/_operations.py index 88bb949f0a8..aec498f71b0 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/aio/operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/aio/operations/_operations.py @@ -545,8 +545,7 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def _operation(self, *, name: str, **kwargs: Any) -> _models._models.OuterModel: - """Expected query parameter: name="Madge" - Expected response body: + """Expected query parameter: name="Madge" Expected response body: .. code-block:: json @@ -615,8 +614,7 @@ async def _operation(self, *, name: str, **kwargs: Any) -> _models._models.Outer @distributed_trace_async async def _discriminator(self, *, kind: str, **kwargs: Any) -> _models._models.AbstractModel: - """Expected query parameter: kind="real" - Expected response body: + """Expected query parameter: kind="real" Expected response body: .. code-block:: json diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/operations/_operations.py index 901011e64df..b247db12f33 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/operations/_operations.py @@ -714,8 +714,7 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace def _operation(self, *, name: str, **kwargs: Any) -> _models._models.OuterModel: - """Expected query parameter: name="Madge" - Expected response body: + """Expected query parameter: name="Madge" Expected response body: .. code-block:: json @@ -784,8 +783,7 @@ def _operation(self, *, name: str, **kwargs: Any) -> _models._models.OuterModel: @distributed_trace def _discriminator(self, *, kind: str, **kwargs: Any) -> _models._models.AbstractModel: - """Expected query parameter: kind="real" - Expected response body: + """Expected query parameter: kind="real" Expected response body: .. code-block:: json diff --git a/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/models/_enums.py b/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/models/_enums.py index 1e2417ecdd1..093d01e8a64 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/models/_enums.py +++ b/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/models/_enums.py @@ -18,6 +18,5 @@ class RepeatabilityResult(str, Enum, metaclass=CaseInsensitiveEnumMeta): execution of the operation.""" REJECTED = "rejected" """If the request was rejected because the combination of Repeatability-First-Sent and - Repeatability-Request-ID were invalid - or because the Repeatability-First-Sent value was outside the range of values held by the - server.""" + Repeatability-Request-ID were invalid or because the Repeatability-First-Sent value was outside + the range of values held by the server.""" diff --git a/packages/typespec-python/test/azure/generated/specs-documentation/specs/documentation/aio/operations/_operations.py b/packages/typespec-python/test/azure/generated/specs-documentation/specs/documentation/aio/operations/_operations.py index 55ce926f1e4..b783a5ade04 100644 --- a/packages/typespec-python/test/azure/generated/specs-documentation/specs/documentation/aio/operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/specs-documentation/specs/documentation/aio/operations/_operations.py @@ -300,9 +300,8 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def bold_text(self, **kwargs: Any) -> None: - """This is **bold text** in the middle of a sentence. - This is a sentence with **multiple bold** sections and **another bold** section. - **This entire sentence is bold.**. + """This is **bold text** in the middle of a sentence. This is a sentence with **multiple bold** + sections and **another bold** section. **This entire sentence is bold.**. :return: None :rtype: None @@ -346,9 +345,8 @@ async def bold_text(self, **kwargs: Any) -> None: @distributed_trace_async async def italic_text(self, **kwargs: Any) -> None: - """This is *italic text* in the middle of a sentence. - This is a sentence with *multiple italic* sections and *another italic* section. - *This entire sentence is italic.*. + """This is *italic text* in the middle of a sentence. This is a sentence with *multiple italic* + sections and *another italic* section. *This entire sentence is italic.*. :return: None :rtype: None @@ -392,10 +390,9 @@ async def italic_text(self, **kwargs: Any) -> None: @distributed_trace_async async def combined_formatting(self, **kwargs: Any) -> None: - """This sentence has **bold**, *italic*, and ***bold italic*** text. - You can also combine them like **bold with *italic inside* bold**. - Or *italic with **bold inside** italic*. - This is a sentence with **bold**, *italic*, and ***bold italic*** text. + """This sentence has **bold**, *italic*, and ***bold italic*** text. You can also combine them + like **bold with *italic inside* bold**. Or *italic with **bold inside** italic*. This is a + sentence with **bold**, *italic*, and ***bold italic*** text. :return: None :rtype: None diff --git a/packages/typespec-python/test/azure/generated/specs-documentation/specs/documentation/operations/_operations.py b/packages/typespec-python/test/azure/generated/specs-documentation/specs/documentation/operations/_operations.py index 908f28ffd91..48f21f06389 100644 --- a/packages/typespec-python/test/azure/generated/specs-documentation/specs/documentation/operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/specs-documentation/specs/documentation/operations/_operations.py @@ -342,9 +342,8 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace def bold_text(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """This is **bold text** in the middle of a sentence. - This is a sentence with **multiple bold** sections and **another bold** section. - **This entire sentence is bold.**. + """This is **bold text** in the middle of a sentence. This is a sentence with **multiple bold** + sections and **another bold** section. **This entire sentence is bold.**. :return: None :rtype: None @@ -388,9 +387,8 @@ def bold_text(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-retu @distributed_trace def italic_text(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """This is *italic text* in the middle of a sentence. - This is a sentence with *multiple italic* sections and *another italic* section. - *This entire sentence is italic.*. + """This is *italic text* in the middle of a sentence. This is a sentence with *multiple italic* + sections and *another italic* section. *This entire sentence is italic.*. :return: None :rtype: None @@ -434,10 +432,9 @@ def italic_text(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-re @distributed_trace def combined_formatting(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """This sentence has **bold**, *italic*, and ***bold italic*** text. - You can also combine them like **bold with *italic inside* bold**. - Or *italic with **bold inside** italic*. - This is a sentence with **bold**, *italic*, and ***bold italic*** text. + """This sentence has **bold**, *italic*, and ***bold italic*** text. You can also combine them + like **bold with *italic inside* bold**. Or *italic with **bold inside** italic*. This is a + sentence with **bold**, *italic*, and ***bold italic*** text. :return: None :rtype: None diff --git a/packages/typespec-python/test/unbranded/generated/specs-documentation/specs/documentation/aio/operations/_operations.py b/packages/typespec-python/test/unbranded/generated/specs-documentation/specs/documentation/aio/operations/_operations.py index 9a3d47e0264..f6bffb6bd73 100644 --- a/packages/typespec-python/test/unbranded/generated/specs-documentation/specs/documentation/aio/operations/_operations.py +++ b/packages/typespec-python/test/unbranded/generated/specs-documentation/specs/documentation/aio/operations/_operations.py @@ -283,9 +283,8 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") async def bold_text(self, **kwargs: Any) -> None: - """This is **bold text** in the middle of a sentence. - This is a sentence with **multiple bold** sections and **another bold** section. - **This entire sentence is bold.**. + """This is **bold text** in the middle of a sentence. This is a sentence with **multiple bold** + sections and **another bold** section. **This entire sentence is bold.**. :return: None :rtype: None @@ -326,9 +325,8 @@ async def bold_text(self, **kwargs: Any) -> None: return cls(pipeline_response, None, {}) # type: ignore async def italic_text(self, **kwargs: Any) -> None: - """This is *italic text* in the middle of a sentence. - This is a sentence with *multiple italic* sections and *another italic* section. - *This entire sentence is italic.*. + """This is *italic text* in the middle of a sentence. This is a sentence with *multiple italic* + sections and *another italic* section. *This entire sentence is italic.*. :return: None :rtype: None @@ -369,10 +367,9 @@ async def italic_text(self, **kwargs: Any) -> None: return cls(pipeline_response, None, {}) # type: ignore async def combined_formatting(self, **kwargs: Any) -> None: - """This sentence has **bold**, *italic*, and ***bold italic*** text. - You can also combine them like **bold with *italic inside* bold**. - Or *italic with **bold inside** italic*. - This is a sentence with **bold**, *italic*, and ***bold italic*** text. + """This sentence has **bold**, *italic*, and ***bold italic*** text. You can also combine them + like **bold with *italic inside* bold**. Or *italic with **bold inside** italic*. This is a + sentence with **bold**, *italic*, and ***bold italic*** text. :return: None :rtype: None diff --git a/packages/typespec-python/test/unbranded/generated/specs-documentation/specs/documentation/operations/_operations.py b/packages/typespec-python/test/unbranded/generated/specs-documentation/specs/documentation/operations/_operations.py index 62beb73a036..a514afc00db 100644 --- a/packages/typespec-python/test/unbranded/generated/specs-documentation/specs/documentation/operations/_operations.py +++ b/packages/typespec-python/test/unbranded/generated/specs-documentation/specs/documentation/operations/_operations.py @@ -325,9 +325,8 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") def bold_text(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """This is **bold text** in the middle of a sentence. - This is a sentence with **multiple bold** sections and **another bold** section. - **This entire sentence is bold.**. + """This is **bold text** in the middle of a sentence. This is a sentence with **multiple bold** + sections and **another bold** section. **This entire sentence is bold.**. :return: None :rtype: None @@ -368,9 +367,8 @@ def bold_text(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-retu return cls(pipeline_response, None, {}) # type: ignore def italic_text(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """This is *italic text* in the middle of a sentence. - This is a sentence with *multiple italic* sections and *another italic* section. - *This entire sentence is italic.*. + """This is *italic text* in the middle of a sentence. This is a sentence with *multiple italic* + sections and *another italic* section. *This entire sentence is italic.*. :return: None :rtype: None @@ -411,10 +409,9 @@ def italic_text(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-re return cls(pipeline_response, None, {}) # type: ignore def combined_formatting(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """This sentence has **bold**, *italic*, and ***bold italic*** text. - You can also combine them like **bold with *italic inside* bold**. - Or *italic with **bold inside** italic*. - This is a sentence with **bold**, *italic*, and ***bold italic*** text. + """This sentence has **bold**, *italic*, and ***bold italic*** text. You can also combine them + like **bold with *italic inside* bold**. Or *italic with **bold inside** italic*. This is a + sentence with **bold**, *italic*, and ***bold italic*** text. :return: None :rtype: None diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2c4228beb5d..d6093971223 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -60,8 +60,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/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgwNDUwNy9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.0.tgz - version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgwNDUwNy9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.0.tgz(sci46xezvetolgxhmxjjwvt7o4) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgwOTQ5MC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.0.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgwOTQ5MC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.0.tgz(sci46xezvetolgxhmxjjwvt7o4) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -82,8 +82,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/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgwNDUwNy9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.0.tgz - version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgwNDUwNy9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.0.tgz(sci46xezvetolgxhmxjjwvt7o4) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgwOTQ5MC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.0.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgwOTQ5MC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.0.tgz(sci46xezvetolgxhmxjjwvt7o4) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -1698,8 +1698,8 @@ packages: peerDependencies: '@typespec/compiler': ^1.8.0 - '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgwNDUwNy9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.0.tgz': - resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgwNDUwNy9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.0.tgz} + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgwOTQ5MC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.0.tgz': + resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgwOTQ5MC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.0.tgz} version: 0.26.0 engines: {node: '>=20.0.0'} peerDependencies: @@ -6510,7 +6510,7 @@ snapshots: dependencies: '@typespec/compiler': 1.8.0(@types/node@24.1.0) - '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgwNDUwNy9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.0.tgz(sci46xezvetolgxhmxjjwvt7o4)': + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgwOTQ5MC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.0.tgz(sci46xezvetolgxhmxjjwvt7o4)': dependencies: '@azure-tools/typespec-autorest': 0.64.0(5qtuclgmanejzupoeh5fzi2ury) '@azure-tools/typespec-azure-core': 0.64.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))(@typespec/rest@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0)))))