Skip to content

Commit

Permalink
Another newsfragment
Browse files Browse the repository at this point in the history
Fixes #300
  • Loading branch information
hynek committed Feb 5, 2018
1 parent 05226bd commit f5477a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog.d/300.change.rst
@@ -0,0 +1,3 @@
The order of attributes that are passed into ``attr.make_class()`` or the ``these`` argument of ``@attr.s()`` is now retained if the dictionary is ordered (i.e. ``dict`` on Python 3.6 and later, ``collections.OrderedDict`` otherwise).

Before, the order was always determined by the order in which the attributes have been defined which may not be desirable when creating classes programatically.

0 comments on commit f5477a7

Please sign in to comment.