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.