From 6ac5fc88a6f37de5999d214ba2a9932c0cdd64e9 Mon Sep 17 00:00:00 2001
From: Chris Mostert <15890652+chrismostert@users.noreply.github.com>
Date: Mon, 11 Mar 2024 17:29:08 +0100
Subject: [PATCH] Fix formatting
---
docs/models/types.md | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/docs/models/types.md b/docs/models/types.md
index e411c7262..c6e56d2cd 100644
--- a/docs/models/types.md
+++ b/docs/models/types.md
@@ -268,8 +268,8 @@ Example(good=11.0, bad=-9.9827632)
### Overriding standard type converters
-It is also possible to override the converter for any of the standard types.
-For example, we can override the standard serialize function for `XmlDateTime`.
+It is also possible to override the converter for any of the standard types. For
+example, we can override the standard serialize function for `XmlDateTime`.
```python
>>> from dataclasses import dataclass
@@ -303,8 +303,8 @@ For example, we can override the standard serialize function for `XmlDateTime`.
...
>>> print(serializer.render(datetime_obj))
2023-11-24T10:38:56.123
-...
-...
+>>>
+>>>
>>> class MyXmlDateTimeConverter(Converter):
... def deserialize(self, value: Any, **kwargs: Any) -> XmlDateTime:
... return XmlDateTime.from_string(value)
@@ -321,7 +321,7 @@ For example, we can override the standard serialize function for `XmlDateTime`.
>>> converter.register_converter(XmlDateTime, MyXmlDateTimeConverter())
>>> print(serializer.render(datetime_obj))
24-11-2023T10:38:56
-...
+>>>
>>> converter.unregister_converter(XmlDateTime)
```