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

make_class(): Add "__annotations_" to generated class

#1285Merged
Comparing
make-class-annotations
(
7a4a6f9
) with
main
(
c83de6a
)
CodSpeed Performance Gauge
0%
Untouched
12

Benchmarks

12 total
test_programmatic
tests/test_functional.py::TestFunctional
CodSpeed Performance Gauge
+1%
17.2 ms17 ms
test_asdict[C1Slots]
tests/test_functional.py::TestFunctional
CodSpeed Performance Gauge
0%
111.6 µs111.2 µs
test_asdict[C1]
tests/test_functional.py::TestFunctional
CodSpeed Performance Gauge
0%
124.1 µs124.1 µs
test_auto_exc[True-True]
tests/test_functional.py::TestFunctional
CodSpeed Performance Gauge
0%
3.6 ms3.6 ms
test_auto_exc[True-False]
tests/test_functional.py::TestFunctional
CodSpeed Performance Gauge
0%
3.6 ms3.6 ms
test_fields[C2Slots]
tests/test_functional.py::TestFunctional
CodSpeed Performance Gauge
0%
138.9 µs139 µs
test_auto_exc[False-False]
tests/test_functional.py::TestFunctional
CodSpeed Performance Gauge
0%
3.5 ms3.5 ms
test_unsafe_hash[True]
tests/test_functional.py::TestFunctional
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms
test_fields[C2]
tests/test_functional.py::TestFunctional
CodSpeed Performance Gauge
0%
150.1 µs150.4 µs
test_auto_exc[False-True]
tests/test_functional.py::TestFunctional
CodSpeed Performance Gauge
0%
3.5 ms3.5 ms
test_default_decorator
tests/test_functional.py::TestFunctional
CodSpeed Performance Gauge
0%
1.8 ms1.8 ms
test_unsafe_hash[False]
tests/test_functional.py::TestFunctional
CodSpeed Performance Gauge
-1%
1.4 ms1.4 ms

Commits

Click on a commit to change the comparison range
Base
main
c83de6a
-0.06%
Fix PR#
2fc49c6
2 years ago
by hynek
+0.06%
Flip
7a4a6f9
2 years ago
by hynek
© 2026 CodSpeed Technology
Home Terms Privacy Docs