python-attrs
attrs
BlogDocsChangelog

converters: allow wrapping and passing self and fields

#1267Merged
Comparing
3-arg-converters
(
a9141ef
) with
main
(
9439769
)
CodSpeed Performance Gauge
0%
Untouched
8

Benchmarks

Passed

test_eq_equal
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
873.3 µs872.6 µs
test_hash
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.2 ms1.2 ms
test_eq_unequal
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
672.8 µs672.8 µs
test_create_simple_class
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.5 s1.5 s
test_create_simple_class_make_class
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.5 s1.5 s
test_create_frozen_class
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.7 s1.7 s
test_instantiate_no_defaults
bench/test_benchmarks.py
CodSpeed Performance Gauge
-1%
1.3 ms1.3 ms
test_instantiate_with_defaults
bench/test_benchmarks.py
CodSpeed Performance Gauge
-2%
1.3 ms1.3 ms

Commits

Click on a commit to change the comparison range
Base
main
9439769
-0.52%
Check our eq works too
b367922
2 years ago
by hynek
+0.01%
Add narrative docs
e3dbd4f
1 year ago
by hynek
+0.03%
Fix converter overloads, add tests
2df12d8
1 year ago
by Tinche
0%
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
426a00d
1 year ago
by pre-commit-ci[bot]
-0.01%
Merge branch 'main' into 3-arg-converters
a9141ef
1 year ago
by hynek
© 2025 CodSpeed Technology
Home Terms Privacy Docs