Skip to content

Commit

Permalink
[python] fix sphinx syntax for deserialization error docs (#6163)
Browse files Browse the repository at this point in the history
fixes Azure/autorest.python#2955

---------

Co-authored-by: iscai-msft <isabellavcai@gmail.com>
  • Loading branch information
iscai-msft and iscai-msft authored Mar 3, 2025
1 parent bb49d8c commit 737af9e
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: fix
packages:
- "@typespec/http-client-python"
---

Fix sphinx syntax for raising `DeserializationError` in serialization file
Original file line number Diff line number Diff line change
@@ -410,7 +410,7 @@ class Model:
:param function key_extractors: A key extractor function.
:param str content_type: JSON by default, set application/xml if XML.
:returns: An instance of this model
:raises: DeserializationError if something went wrong
:raises DeserializationError: if something went wrong
:rtype: Self
"""
deserializer = Deserializer(cls._infer_class_models())

0 comments on commit 737af9e

Please sign in to comment.