Changelog

Versions are year-based with a strict backwards compatibility policy. The third digit is only for regressions.

15.2.0 (2015-12-08)

Changes:

  • Add a convert argument to attr.ib, which allows specifying a function to run on arguments. This allows for simple type conversions, e.g. with attr.ib(convert=int). [26]
  • Speed up object creation when attribute validators are used. [28]

15.1.0 (2015-08-20)

Changes:

  • Add attr.validators.optional that wraps other validators allowing attributes to be None. [16]
  • Fix multi-level inheritance. [24]
  • Fix __repr__ to work for non-redecorated subclasses. [20]

15.0.0 (2015-04-15)

Changes:

Initial release.