Avatar for the python-attrs user
python-attrs
attrs
BlogDocsChangelog

Performance History

Latest Results

Add `ne` validator (#1571) * Fix inconsistent formatting for Args and Raises docstrings * Add `ne` validator This change adds a validator that raises `ValueError` if the initializer is called with a number equal to *val*. An example use case. I want a field that is a signed `int` of any value except for zero. I could do the following. ```python attrs.field( validator=attrs.validators.or_( attrs.validators.le(-1), attrs.validators.ge(1), ) ) ``` With this proposed `ne` validator I could do. ```python attrs.field(validator=attrs.validators.ne(0)) ``` * Fix news fragments --------- Co-authored-by: Hynek Schlawack <hs@ox.cx>
main
13 hours ago
Fix news fragments
jamesbeith:jamesbeith/ne-validator
13 hours ago
Merge branch 'main' into jamesbeith/ne-validator
jamesbeith:jamesbeith/ne-validator
14 hours ago
docs: be more general
main
14 hours ago
Fix docstring
main
14 hours ago
Don't check pipe hooks for generators
vladfedoriuk:1437-on-setattr-as-generator
14 hours ago
Merge branch 'main' into 1437-on-setattr-as-generator
vladfedoriuk:1437-on-setattr-as-generator
15 hours ago
Use in setters too
vladfedoriuk:1437-on-setattr-as-generator
16 hours ago

Latest Branches

CodSpeed Performance Gauge
0%
Add `ne` validator#1571
14 hours ago
325f349
jamesbeith:jamesbeith/ne-validator
CodSpeed Performance Gauge
0%
14 hours ago
5efaf84
vladfedoriuk:1437-on-setattr-as-generator
CodSpeed Performance Gauge
0%
2 days ago
2e082f1
wanxiankai:fix/classvar-forwardref
© 2026 CodSpeed Technology
Home Terms Privacy Docs