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

Cope with `field_transformer` being a generator

#1417Merged
Comparing
ashb:field_transformer-generator
(
017f9a9
) with
main
(
1c962d1
)
CodSpeed Performance Gauge
0%
Untouched
8

Benchmarks

Passed

test_eq_equal
bench/test_benchmarks.py::test_eq_equal
CodSpeed Performance Gauge
0%
871.3 µs870.5 µs
test_create_simple_class_make_class
bench/test_benchmarks.py::test_create_simple_class_make_class
CodSpeed Performance Gauge
0%
983.7 ms983.1 ms
test_create_frozen_class
bench/test_benchmarks.py::test_create_frozen_class
CodSpeed Performance Gauge
0%
1.3 s1.3 s
test_create_simple_class
bench/test_benchmarks.py::test_create_simple_class
CodSpeed Performance Gauge
0%
1 s1 s
test_instantiate_no_defaults
bench/test_benchmarks.py::test_instantiate_no_defaults
CodSpeed Performance Gauge
0%
1.2 ms1.2 ms
test_instantiate_with_defaults
bench/test_benchmarks.py::test_instantiate_with_defaults
CodSpeed Performance Gauge
0%
1.2 ms1.2 ms
test_hash
bench/test_benchmarks.py::test_hash
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_eq_unequal
bench/test_benchmarks.py::test_eq_unequal
CodSpeed Performance Gauge
0%
665.3 µs665.8 µs

Commits

Click on a commit to change the comparison range
Base
main
1c962d1
+0.03%
Cope with `field_transformer` being a generator This worked on 25.1.0 but was inadvertently broken by #1401
f0beb60
6 months ago
by ashb
-0.02%
Update src/attr/_make.py Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com>
017f9a9
6 months ago
by hynek
© 2025 CodSpeed Technology
Home Terms Privacy Docs