Skip to content

Latest commit

 

History

History
2 lines (2 loc) · 219 Bytes

568.change.rst

File metadata and controls

2 lines (2 loc) · 219 Bytes

The value passed to @attr.ib(repr=…) can now be either a boolean (as before) or a callable. That callable must return a string and is then used for formatting the attribute by the generated __repr__() method.