Skip to content

v3.2.3

Choose a tag to compare

@geyang geyang released this 05 Feb 07:08
· 3 commits to main since this release

Bug Fixes

  • Context Manager Protocol: Fixed regression where __enter__ and __exit__ were stripped from @proto decorated classes

    • Classes implementing context managers now work correctly with with statements
    • Also preserves all user-defined protocol methods: __call__, __iter__, __next__, __getitem__, __len__, etc.
  • 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 explicit return self if needed
    • Standard Python semantics: classmethods receive cls, not bound to instance