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

Add `attrs.validators.or_` validator

#1303Merged
Comparing
bibajz:bibajz/or_validator
(
93c1f07
) with
main
(
37ac3ef
)
CodSpeed Performance Gauge
0%
Untouched
12

Benchmarks

12 total
test_fields[C2]
tests/test_functional.py::TestFunctional
CodSpeed Performance Gauge
+1%
152.8 µs151.7 µs
test_auto_exc[False-True]
tests/test_functional.py::TestFunctional
CodSpeed Performance Gauge
0%
3.5 ms3.5 ms
test_unsafe_hash[False]
tests/test_functional.py::TestFunctional
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
test_asdict[C1Slots]
tests/test_functional.py::TestFunctional
CodSpeed Performance Gauge
0%
111.9 µs111.8 µs
test_default_decorator
tests/test_functional.py::TestFunctional
CodSpeed Performance Gauge
0%
1.8 ms1.8 ms
test_auto_exc[False-False]
tests/test_functional.py::TestFunctional
CodSpeed Performance Gauge
0%
3.5 ms3.5 ms
test_fields[C2Slots]
tests/test_functional.py::TestFunctional
CodSpeed Performance Gauge
0%
139.5 µs139.5 µs
test_auto_exc[True-False]
tests/test_functional.py::TestFunctional
CodSpeed Performance Gauge
0%
3.6 ms3.6 ms
test_asdict[C1]
tests/test_functional.py::TestFunctional
CodSpeed Performance Gauge
0%
124.6 µs124.5 µs
test_auto_exc[True-True]
tests/test_functional.py::TestFunctional
CodSpeed Performance Gauge
0%
3.6 ms3.6 ms
test_unsafe_hash[True]
tests/test_functional.py::TestFunctional
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms
test_programmatic
tests/test_functional.py::TestFunctional
CodSpeed Performance Gauge
-3%
16.5 ms17.1 ms

Commits

Click on a commit to change the comparison range
Base
main
37ac3ef
-0.26%
Add tests/test_validators.py::TestOr test cases
7cc2a30
2 years ago
by bibajz
-0.07%
Add changelog entry
6996627
2 years ago
by bibajz
+0.73%
Swap double quotes for single because doctests don't like it
456863e
2 years ago
by bibajz
-0.67%
Rename changelog fragment pointing to incorrect number
f171738
2 years ago
by bibajz
+0.13%
Merge branch 'main' into bibajz/or_validator
875f0aa
2 years ago
by hynek
+0.45%
Silence ruff linter warnings
8f28bf5
2 years ago
-0.17%
Apply suggestions from code review
c9da05f
2 years ago
by bibajz
+0.65%
Rework example of or_ validator in api/docs.rst
a0b6b24
2 years ago
-0.94%
Update docs/api.rst
93c1f07
2 years ago
by hynek
© 2026 CodSpeed Technology
Home Terms Privacy Docs