Skip to content

Commit fcfb5a6

Browse files
committed
Last pass over changelogs
1 parent e098734 commit fcfb5a6

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

changelog.d/817.change.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +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.
1+
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.

changelog.d/819.change.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
The generated ``__repr__`` is significantly faster on Pythons with F-strings.
1+
The generated ``__repr__`` is significantly faster on Pythons with f-strings.

changelog.d/830.change.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Added ``attr.converters.to_bool()``.
1+
Added ``attrs.converters.to_bool()``.

changelog.d/835.breaking.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
When using ``@attr.define``, converters are now run by default when setting an attribute on an instance -- additionally to validators.
2-
I.e. the new default is ``on_setattr=[attr.setters.convert, attr.setters.validate]``.
1+
When using ``@define``, converters are now run by default when setting an attribute on an instance -- additionally to validators.
2+
I.e. the new default is ``on_setattr=[attrs.setters.convert, attrs.setters.validate]``.
33

44
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.

changelog.d/843.change.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
``attr.resolve_types()`` now resolves types of subclasses after the parents are resolved.
1+
``attrs.resolve_types()`` now resolves types of subclasses after the parents are resolved.
22
`#842 <https://github.com/python-attrs/attrs/issues/842>`_

changelog.d/857.change.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
``attrs`` classes are now fully compatible with `cloudpickle <https://github.com/cloudpipe/cloudpickle>`_ (no need to disabled ``repr`` anymore).
1+
``attrs`` classes are now fully compatible with `cloudpickle <https://github.com/cloudpipe/cloudpickle>`_ (no need to disable ``repr`` anymore).

changelog.d/859.change.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Added new context manager ``attr.validators.disabled()`` and functions ``attr.validators.(set|get)_disabled()``.
2-
They deprecate ``attr.(set|get)_run_validators()``.
1+
Added new context manager ``attrs.validators.disabled()`` and functions ``attrs.validators.(set|get)_disabled()``.
2+
They deprecate ``attrs.(set|get)_run_validators()``.
33
All functions are interoperable and modify the same internal state.
44
They are not – and never were – thread-safe, though.

changelog.d/877.change.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
``attr.validators.matches_re()`` now accepts pre-compiled regular expressions in addition to pattern strings.
1+
``attrs.validators.matches_re()`` now accepts pre-compiled regular expressions in addition to pattern strings.

changelog.d/886.breaking.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
When using ``@attr.define``, converters are now run by default when setting an attribute on an instance -- additionally to validators.
2-
I.e. the new default is ``on_setattr=[attr.setters.convert, attr.setters.validate]``.
1+
When using ``@define``, converters are now run by default when setting an attribute on an instance -- additionally to validators.
2+
I.e. the new default is ``on_setattr=[attrs.setters.convert, attrs.setters.validate]``.
33

44
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.

0 commit comments

Comments
 (0)