cattrs v1.9.0 Release Notes
Release Date: 2021-12-06 // over 2 years ago-
- 👍 Python 3.10 support, including support for the new union syntax (
A | B
vsUnion[A, B]
). - The
GenConverter
can now properly structure generic classes with generic collection fields. (#149 <https://github.com/python-attrs/cattrs/issues/149>
_) omit=True
now also affects generated structuring functions. (#166 <https://github.com/python-attrs/cattrs/issues/166>
_)cattr.gen.{make_dict_structure_fn, make_dict_unstructure_fn}
now resolve type annotations automatically when PEP 563 is used. (#169 <https://github.com/python-attrs/cattrs/issues/169>
_)- Protocols are now unstructured as their runtime types.
(
#177 <https://github.com/python-attrs/cattrs/pull/177>
_) - Fix an issue generating structuring functions with renaming and
_cattrs_forbid_extra_keys=True
. (#190 <https://github.com/python-attrs/cattrs/issues/190>
_)
- 👍 Python 3.10 support, including support for the new union syntax (