You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: HISTORY.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,14 @@ Our backwards-compatibility policy can be found [here](https://github.com/python
20
20
- Apply the attrs converter to the default value before checking if it is equal to the attribute's value, when `omit_if_default` is true and an attrs converter is specified.
Copy file name to clipboardExpand all lines: docs/preconf.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,9 @@ Optional install targets should match the name of the {mod}`cattrs.preconf` modu
55
55
# Using pip
56
56
$ pip install cattrs[ujson]
57
57
58
+
# Usinv uv
59
+
$ uv add cattrs[msgspec]
60
+
58
61
# Using pdm
59
62
$ pdm add cattrs[orjson]
60
63
@@ -202,4 +205,6 @@ Found at {mod}`cattrs.preconf.tomlkit`.
202
205
203
206
Bytes are serialized as base 85 strings. Sets are serialized as lists, and deserialized back into sets.
204
207
Tuples are serialized as lists, and deserialized back into tuples.
205
-
_tomlkit_ only supports mappings with string keys so mappings will have their keys stringified before serialization, and destringified during deserialization. `date` s are serialized as ISO 8601 strings.
208
+
_tomlkit_ only supports mappings with string keys so mappings will have their keys stringified before serialization, and destringified during deserialization.
209
+
[`date`](https://docs.python.org/3/library/datetime.html#datetime.date) and [`datetime`](https://docs.python.org/3/library/datetime.html#datetime.datetime) objects are passed through to be unstructured by _tomlkit_ itself.
0 commit comments