diff --git a/changelog.d/817.change.rst b/changelog.d/817.change.rst index 3a53efc74..9c5715279 100644 --- a/changelog.d/817.change.rst +++ b/changelog.d/817.change.rst @@ -1 +1 @@ -If the class-level *on_setattr* is set to ``attr.setters.validate`` (default in ``@attr.define`` and ``@attr.mutable``) but no field defines a validator, pretend that it's not set. +If the class-level *on_setattr* is set to ``attrs.setters.validate`` (default in ``@define`` and ``@mutable``) but no field defines a validator, pretend that it's not set. diff --git a/changelog.d/819.change.rst b/changelog.d/819.change.rst index eb45d6168..51fc54b2f 100644 --- a/changelog.d/819.change.rst +++ b/changelog.d/819.change.rst @@ -1 +1 @@ -The generated ``__repr__`` is significantly faster on Pythons with F-strings. +The generated ``__repr__`` is significantly faster on Pythons with f-strings. diff --git a/changelog.d/830.change.rst b/changelog.d/830.change.rst index 06d454498..ce1381391 100644 --- a/changelog.d/830.change.rst +++ b/changelog.d/830.change.rst @@ -1 +1 @@ -Added ``attr.converters.to_bool()``. +Added ``attrs.converters.to_bool()``. diff --git a/changelog.d/835.breaking.rst b/changelog.d/835.breaking.rst index 8cdf0412d..369a22f33 100644 --- a/changelog.d/835.breaking.rst +++ b/changelog.d/835.breaking.rst @@ -1,4 +1,4 @@ -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]``. +When using ``@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=[attrs.setters.convert, attrs.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. diff --git a/changelog.d/843.change.rst b/changelog.d/843.change.rst index 746950180..ed48f9821 100644 --- a/changelog.d/843.change.rst +++ b/changelog.d/843.change.rst @@ -1,2 +1,2 @@ -``attr.resolve_types()`` now resolves types of subclasses after the parents are resolved. +``attrs.resolve_types()`` now resolves types of subclasses after the parents are resolved. `#842 `_ diff --git a/changelog.d/857.change.rst b/changelog.d/857.change.rst index d8c4e9bd2..66fd13fa4 100644 --- a/changelog.d/857.change.rst +++ b/changelog.d/857.change.rst @@ -1 +1 @@ -``attrs`` classes are now fully compatible with `cloudpickle `_ (no need to disabled ``repr`` anymore). +``attrs`` classes are now fully compatible with `cloudpickle `_ (no need to disable ``repr`` anymore). diff --git a/changelog.d/859.change.rst b/changelog.d/859.change.rst index a79bd984f..12a965eea 100644 --- a/changelog.d/859.change.rst +++ b/changelog.d/859.change.rst @@ -1,4 +1,4 @@ -Added new context manager ``attr.validators.disabled()`` and functions ``attr.validators.(set|get)_disabled()``. -They deprecate ``attr.(set|get)_run_validators()``. +Added new context manager ``attrs.validators.disabled()`` and functions ``attrs.validators.(set|get)_disabled()``. +They deprecate ``attrs.(set|get)_run_validators()``. All functions are interoperable and modify the same internal state. They are not – and never were – thread-safe, though. diff --git a/changelog.d/877.change.rst b/changelog.d/877.change.rst index b90209025..2ad5fcebd 100644 --- a/changelog.d/877.change.rst +++ b/changelog.d/877.change.rst @@ -1 +1 @@ -``attr.validators.matches_re()`` now accepts pre-compiled regular expressions in addition to pattern strings. +``attrs.validators.matches_re()`` now accepts pre-compiled regular expressions in addition to pattern strings. diff --git a/changelog.d/886.breaking.rst b/changelog.d/886.breaking.rst index 8cdf0412d..369a22f33 100644 --- a/changelog.d/886.breaking.rst +++ b/changelog.d/886.breaking.rst @@ -1,4 +1,4 @@ -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]``. +When using ``@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=[attrs.setters.convert, attrs.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.