attrs/changelog.d/281.change.rst

3 lines
302 B
ReStructuredText

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.