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.
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.