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

Add `reuse()` to `Attribute` for field evolution

#1429
Comparing
redruin1:evolve-inherited-fields
(
8ef7c8b
) with
main
(
48b8611
)
CodSpeed Performance Gauge
0%
Untouched
15

Benchmarks

15 total
test_first_access
bench/test_benchmarks.py::TestCachedProperties
CodSpeed Performance Gauge
+1%
6.4 ms6.4 ms
test_asdict_atomic
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
6.5 ms6.5 ms
test_eq_unequal
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
652.3 µs652.2 µs
test_eq_equal
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
850.3 µs850.3 µs
test_instantiate_no_defaults
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.3 ms1.3 ms
test_instantiate_with_defaults
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.3 ms1.3 ms
test_hash
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.2 ms1.2 ms
test_astuple_complicated
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
9.5 ms9.5 ms
test_astuple_atomic
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
6 ms6 ms
test_repeated_access
bench/test_benchmarks.py::TestCachedProperties
CodSpeed Performance Gauge
0%
237.5 µs237.7 µs
test_create_cached_property_class
bench/test_benchmarks.py::TestCachedProperties
CodSpeed Performance Gauge
0%
2 s2 s
test_create_frozen_class
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.5 s1.5 s
test_asdict_complicated
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
9.9 ms10 ms
test_create_simple_class
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.3 s1.3 s
test_create_simple_class_make_class
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.2 s1.2 s

Commits

Click on a commit to change the comparison range
Base
main
48b8611
-0.45%
add `to_field()` to `Attribute`
5571516
11 months ago
by redruin1
0%
[pre-commit.ci] auto fixes from pre-commit.com hooks
bf46813
11 months ago
by pre-commit-ci[bot]
+0.01%
changed to `reuse` and docs first pass
ac8df61
10 months ago
by redruin1
+0.01%
[pre-commit.ci] auto fixes from pre-commit.com hooks
d4f4587
10 months ago
by pre-commit-ci[bot]
+0.28%
formatting fixes
80f0177
9 months ago
by redruin1
0%
Merge branch 'main' into evolve-inherited-fields
76a8e8c
9 months ago
by redruin1
+0.03%
Merge branch 'main' into evolve-inherited-fields
86d7e7e
9 months ago
by redruin1
+0.02%
Merge branch 'main' into evolve-inherited-fields
0b472c1
3 days ago
by hynek
+0.03%
Fix file name
8ef7c8b
3 days ago
by hynek
© 2026 CodSpeed Technology
Home Terms Privacy Docs