python-attrs
attrs
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Optimizations
Branches
Benchmarks
Runs
Performance History
Latest Results
fix: preserve user-declared __slots__ on the generated class attrs previously discarded an explicitly declared __slots__ tuple when building the slots class, so names declared by the user were silently dropped (no attribute, no error). Honor the declared names and de-dup against inherited slots, keeping frozen/pickle behavior intact. Fixes #1637
kevindurant735rocket-creator:fix-1637-preserve-declared-slots
3 hours ago
test: expand coverage for user-defined slots
emadleo13:fix-1637-user-defined-slots
11 hours ago
Preserve user-defined slots on attrs classes
emadleo13:fix-1637-user-defined-slots
14 hours ago
Preserve user-defined slots on attrs classes
emadleo13:fix-1637-user-defined-slots
15 hours ago
fix: avoid an uncoverable branch when preserving own __slots__ Iterate the already-filtered list of the class's own slots instead of re-testing each own slot against the combined slot_names in the descriptor cleanup loop. The popped set is unchanged (a name is only in own_new_slots when it is added to slot_names), but the redundant membership test introduced a branch that is never taken for valid input, which the 100% branch-coverage gate rejects.
DawnofGenX:fix/slotted-attrs-preserve-own-slots
2 days ago
fix(slots): preserve __dict__ state when pickling slotted classes
saadkhantareen:fix/preserve-dict-state-when-pickling-slotted-classes
3 days ago
fix: preserve slots declared on slotted attrs classes
DawnofGenX:fix/slotted-attrs-preserve-own-slots
5 days ago
Run codspeed also on main pushes
main
5 days ago
Latest Branches
CodSpeed Performance Gauge
0%
fix: preserve user-declared __slots__ on the generated class
#1645
3 hours ago
f674201
kevindurant735rocket-creator:fix-1637-preserve-declared-slots
CodSpeed Performance Gauge
0%
Preserve user defined slots on attrs classes...
#1644
11 hours ago
a626b9f
emadleo13:fix-1637-user-defined-slots
CodSpeed Performance Gauge
0%
fix: preserve slots declared on slotted attrs classes
#1642
2 days ago
8ce3ee7
DawnofGenX:fix/slotted-attrs-preserve-own-slots
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs