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

Expose effective class construction params

#1454
Comparing
params
(
5b4756e
) with
main
(
6e3786c
)
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%
885.9 µs
885.6 µs
test_hash
bench/test_benchmarks.py::test_hash
CodSpeed Performance Gauge
0%
1.1 ms
1.1 ms
test_eq_unequal
bench/test_benchmarks.py::test_eq_unequal
CodSpeed Performance Gauge
0%
675.8 µs
675.6 µs
test_instantiate_with_defaults
bench/test_benchmarks.py::test_instantiate_with_defaults
CodSpeed Performance Gauge
0%
1.3 ms
1.3 ms
test_instantiate_no_defaults
bench/test_benchmarks.py::test_instantiate_no_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%
1 s
1 s
test_create_simple_class
bench/test_benchmarks.py::test_create_simple_class
CodSpeed Performance Gauge
-1%
1.1 s
1.1 s

Commits

Click on a commit to change the comparison range
Base
main
6e3786c
0%
Set __attrs_base_of_slotted__ for unused base classes
1edde23
22 days ago
by hynek
0%
Rename to ClassProps This reflects that the instance is NOT just the parameters as passed to the decorator, but how the class is actually constructed.
cf414ac
17 days ago
by hynek
0%
Start renaming fields so it's clearer these aren't just arguments
75f501c
17 days ago
by hynek
0%
Dont's expose has_custom_setattr
5b4756e
17 days ago
by hynek
© 2025 CodSpeed Technology
Home Terms Privacy Docs