Changelog polishes

This commit is contained in:
Hynek Schlawack 2018-09-01 06:38:15 +02:00
parent 15643ae8e2
commit 839a6054b2
4 changed files with 3 additions and 4 deletions

View File

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

View File

@ -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"``.

View File

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

View File

@ -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)``.