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

Performance History

Latest Results

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)) ```
jamesbeith:jamesbeith/ne-validator
18 hours ago
Merge branch 'main' into fix/validate-init-aliases
uwezkhan:fix/validate-init-aliases
1 day ago
Merge branch 'main' into fix/init-alias-validation
uwezkhan:fix/init-alias-validation
1 day ago
Merge branch 'main' into fix/sized-validation
uwezkhan:fix/sized-validation
1 day ago
fix: asdict filter exclude list matches on name instead of attribute
YousafZahid1:gray-fix-issue-864-7309b0bc
4 days ago
Cover wrapped closure cycle guard
Sean-Kenneth-Doherty:fix/wrapped-method-super-cells
19 days ago

Latest Branches

CodSpeed Performance Gauge
0%
Add `ne` validator#1571
18 hours ago
8538b59
jamesbeith:jamesbeith/ne-validator
CodSpeed Performance Gauge
0%
1 day ago
d7309ca
uwezkhan:fix/validate-init-aliases
CodSpeed Performance Gauge
0%
1 day ago
e8e63b7
uwezkhan:fix/init-alias-validation
© 2026 CodSpeed Technology
Home Terms Privacy Docs