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

Add `to_field()` to `Attribute`

#1429
Comparing
redruin1:evolve-inherited-fields
(
d4f4587
) with
main
(
3d42a69
)
CodSpeed Performance Gauge
0%
Improvements
0
Regressions
0
Untouched
8
New
0
Dropped
0
Ignored
0

Benchmarks

Passed

test_eq_equal
bench/test_benchmarks.py::test_eq_equal
CodSpeed Performance Gauge
0%
877.2 µs
874.5 µs
test_eq_unequal
bench/test_benchmarks.py::test_eq_unequal
CodSpeed Performance Gauge
0%
668.8 µs
668.9 µs
test_instantiate_with_defaults
bench/test_benchmarks.py::test_instantiate_with_defaults
CodSpeed Performance Gauge
0%
1.2 ms
1.2 ms
test_create_frozen_class
bench/test_benchmarks.py::test_create_frozen_class
CodSpeed Performance Gauge
-1%
1.3 s
1.3 s
test_create_simple_class_make_class
bench/test_benchmarks.py::test_create_simple_class_make_class
CodSpeed Performance Gauge
-1%
983.1 ms
989.7 ms
test_hash
bench/test_benchmarks.py::test_hash
CodSpeed Performance Gauge
-1%
1.1 ms
1.1 ms
test_create_simple_class
bench/test_benchmarks.py::test_create_simple_class
CodSpeed Performance Gauge
-1%
1 s
1.1 s
test_instantiate_no_defaults
bench/test_benchmarks.py::test_instantiate_no_defaults
CodSpeed Performance Gauge
-1%
1.2 ms
1.2 ms

Commits

Click on a commit to change the comparison range
Base
main
3d42a69
0%
add `to_field()` to `Attribute` with additional `inherited` kwarg to preserve inherited class order
5571516
7 days ago
by redruin1
0%
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
bf46813
7 days 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 days ago
by redruin1
0%
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
d4f4587
2 days ago
by pre-commit-ci[bot]
© 2025 CodSpeed Technology
Home Terms PrivacyDocs