diff --git a/changelog.d/281.change.rst b/changelog.d/281.change.rst index 56e5ee6e..9b3a5d75 100644 --- a/changelog.d/281.change.rst +++ b/changelog.d/281.change.rst @@ -1,2 +1,2 @@ -Added *kw_only* arguments to ``attr.ib`` and ``attr.s```, and a corresponding *kw_only* attribute to ``attr.Attribute``. +Added *kw_only* arguments to ``attr.ib`` and ``attr.s``, and a corresponding *kw_only* attribute to ``attr.Attribute``. This change makes it possible to have a generated ``__init__`` with keyword-only arguments on Python 3, relaxing the required ordering of default and non-default valued attributes. diff --git a/changelog.d/383.change.rst b/changelog.d/383.change.rst index 6600b5b3..84a54cb8 100644 --- a/changelog.d/383.change.rst +++ b/changelog.d/383.change.rst @@ -1,2 +1 @@ ``attr.validators.in_()`` now raises a ``ValueError`` with a useful message even if the options are a string and the value is not a string. -This previously raised a ``TypeError``, like ``1 in "abc"``. diff --git a/changelog.d/411.change.rst b/changelog.d/411.change.rst index 56e5ee6e..9b3a5d75 100644 --- a/changelog.d/411.change.rst +++ b/changelog.d/411.change.rst @@ -1,2 +1,2 @@ -Added *kw_only* arguments to ``attr.ib`` and ``attr.s```, and a corresponding *kw_only* attribute to ``attr.Attribute``. +Added *kw_only* arguments to ``attr.ib`` and ``attr.s``, and a corresponding *kw_only* attribute to ``attr.Attribute``. This change makes it possible to have a generated ``__init__`` with keyword-only arguments on Python 3, relaxing the required ordering of default and non-default valued attributes. diff --git a/changelog.d/420.change.rst b/changelog.d/420.change.rst index d5bba0d3..0fa8051b 100644 --- a/changelog.d/420.change.rst +++ b/changelog.d/420.change.rst @@ -1 +1 @@ -Add *weakref_slot* parameter to ``attr.s()`` allowing for weak referenceable slotted classes. +Slotted classes can now be made weakly referenceable by passing ``@attr.s(weakref_slot=True)``.