Avatar for the python-attrs user
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%
Improvements
0
Regressions
0
Untouched
8
New
0
Dropped
0
Ignored
0

Benchmarks

Passed

test_eq_unequal
bench/test_benchmarks.py::test_eq_unequal
CodSpeed Performance Gauge
0%
669 µs
668.8 µs
test_hash
bench/test_benchmarks.py::test_hash
CodSpeed Performance Gauge
0%
1.1 ms
1.1 ms
test_instantiate_no_defaults
bench/test_benchmarks.py::test_instantiate_no_defaults
CodSpeed Performance Gauge
0%
1.2 ms
1.2 ms
test_instantiate_with_defaults
bench/test_benchmarks.py::test_instantiate_with_defaults
CodSpeed Performance Gauge
0%
1.2 ms
1.2 ms
test_eq_equal
bench/test_benchmarks.py::test_eq_equal
CodSpeed Performance Gauge
0%
875 µs
875 µs
test_create_frozen_class
bench/test_benchmarks.py::test_create_frozen_class
CodSpeed Performance Gauge
0%
1.3 s
1.3 s
test_create_simple_class
bench/test_benchmarks.py::test_create_simple_class
CodSpeed Performance Gauge
0%
1.1 s
1.1 s
test_create_simple_class_make_class
bench/test_benchmarks.py::test_create_simple_class_make_class
CodSpeed Performance Gauge
0%
986.4 ms
990.4 ms

Commits

Click on a commit to change the comparison range
Base
main
ca3fb0e
0%
add `to_field()` to `Attribute` with additional `inherited` kwarg to preserve inherited class order
5571516
2 months ago
by redruin1
0%
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
bf46813
2 months ago
by pre-commit-ci[bot]
0%
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
2 months ago
by redruin1
0%
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
d4f4587
2 months ago
by pre-commit-ci[bot]
0%
formatting fixes
80f0177
20 days ago
by redruin1
0%
Merge branch 'main' into evolve-inherited-fields
76a8e8c
20 days ago
by redruin1
0%
Merge branch 'main' into evolve-inherited-fields
86d7e7e
8 days ago
by redruin1
© 2025 CodSpeed Technology
Home Terms Privacy Docs