python-attrs
attrs
BlogDocsChangelog

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

#1429
Comparing
redruin1:evolve-inherited-fields
(
86d7e7e
) with
main
(
ca3fb0e
)
CodSpeed Performance Gauge
0%
Untouched
8

Benchmarks

Passed

test_eq_unequal
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
669 µs668.8 µs
test_hash
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_instantiate_no_defaults
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.2 ms1.2 ms
test_instantiate_with_defaults
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.2 ms1.2 ms
test_eq_equal
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
875 µs875 µs
test_create_frozen_class
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.3 s1.3 s
test_create_simple_class
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.1 s1.1 s
test_create_simple_class_make_class
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
986.4 ms990.4 ms

Commits

Click on a commit to change the comparison range
Base
main
ca3fb0e
-0.45%
add `to_field()` to `Attribute` with additional `inherited` kwarg to preserve inherited class order
5571516
5 months ago
by redruin1
0%
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
bf46813
5 months ago
by pre-commit-ci[bot]
+0.01%
changed to `reuse` and docs first pass * Added material in "Other goodies" section in `examples.md` * docstrings for `field`, `attrib`, and `reuse` *Added towncrier changelog message
ac8df61
5 months ago
by redruin1
+0.01%
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
d4f4587
5 months ago
by pre-commit-ci[bot]
+0.28%
formatting fixes
80f0177
4 months ago
by redruin1
0%
Merge branch 'main' into evolve-inherited-fields
76a8e8c
4 months ago
by redruin1
+0.03%
Merge branch 'main' into evolve-inherited-fields
86d7e7e
4 months ago
by redruin1
© 2025 CodSpeed Technology
Home Terms Privacy Docs