attrs/changelog.d/414.change.rst

3 lines
189 B
ReStructuredText

Added ``attr.converters.default_if_none()`` that allows to replace ``None`` values in attributes.
For example ``attr.ib(converter=default_if_none(""))`` replaces ``None`` by empty strings.