Skip to content

Commit

Permalink
Allow for inheriting from proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Atry authored May 1, 2024
1 parent aa46e84 commit 87cf4a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lazy_object_proxy/simple.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import operator
import sys

from .compat import string_types
from .compat import with_metaclass
Expand Down Expand Up @@ -257,3 +258,7 @@ def __reduce_ex__(self, protocol):
from .utils import __await__

__aiter__, __anext__, __await__, __aenter__, __aexit__ # noqa

if sys.hexversion >= 0x03070000:
def __mro_entries__(self, _):
return (self.__wrapped__,)

0 comments on commit 87cf4a6

Please sign in to comment.