Skip to content

Latest commit

 

History

History
4 lines (3 loc) · 416 Bytes

835.breaking.rst

File metadata and controls

4 lines (3 loc) · 416 Bytes

When using @attr.define, converters are now run by default when setting an attribute on an instance -- additionally to validators. I.e. the new default is on_setattr=[attr.setters.convert, attr.setters.validate].

This is unfortunately a breaking change, but it was an oversight, impossible to raise a DeprecationWarning about, and it's better to fix it now while the APIs are very fresh with few users.