Skip to content

Commit

Permalink
fix backward compat Python 3.9 for simultanous classmethod and classp…
Browse files Browse the repository at this point in the history
…roperty decorators
  • Loading branch information
fmigneault committed Dec 14, 2024
1 parent ab2c917 commit 2546123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weaver/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def __init__(self,

def __get__(self, cls, owner): # noqa
# type: (Type[object], Any) -> PropertyDataTypeT
return classmethod(self.fget).__get__(None, owner)()
return classmethod(self.fget).__get__(None, owner or cls)()


class _EnumMeta(enum.EnumMeta):
Expand Down

0 comments on commit 2546123

Please sign in to comment.