v3.2.3
Bug Fixes
-
Context Manager Protocol: Fixed regression where
__enter__and__exit__were stripped from@protodecorated classes- Classes implementing context managers now work correctly with
withstatements - Also preserves all user-defined protocol methods:
__call__,__iter__,__next__,__getitem__,__len__, etc.
- Classes implementing context managers now work correctly with
-
Simplified Implementation: Removed method wrapping that caused issues
- Decorated class is now a proper subclass of the original, so methods are inherited naturally
- No more wrapping of methods to return
self- use explicitreturn selfif needed - Standard Python semantics: classmethods receive
cls, not bound to instance