Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 397 Bytes

300.change.rst

File metadata and controls

3 lines (2 loc) · 397 Bytes

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.