Changelog polishes
This commit is contained in:
parent
15643ae8e2
commit
839a6054b2
|
@ -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.
|
||||
|
|
|
@ -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"``.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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)``.
|
||||
|
|
Loading…
Reference in New Issue