Skip to content

Latest commit

 

History

History
2 lines (2 loc) · 560 Bytes

File metadata and controls

2 lines (2 loc) · 560 Bytes

Slotted classes now correctly handle super() and __class__ references inside methods that are wrapped by a decorator. The closure-cell rewrite that keeps super() and __class__ working after the slot-based class is rebuilt now recurses into decorator-wrapped methods instead of stopping at the outer wrapper, so the inner method's baked class reference points at the rebuilt class. Without the fix, calling a decorated method on a slotted attrs class that used super() raised TypeError: super(type, obj): obj must be an instance or subtype of type.