bloomberg / attrs-strict

Provides runtime validation of attributes specified in Python 'attr'-based data classes.
Apache License 2.0
52 stars 19 forks source link

Improve error representation #9

Closed gaborbernat closed 5 years ago

gaborbernat commented 5 years ago
  1. Do not override the object models interface inside BadTypeError
  2. Adhere to repr representation idiom of using <> as wrapper text
  3. Implement str rather than repr