We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28b3a7a commit 666038dCopy full SHA for 666038d
1 file changed
objinspect/method.py
@@ -51,7 +51,10 @@ def is_static(self) -> bool:
51
52
@property
53
def is_classmethod(self) -> bool:
54
- return hasattr(self.func, "__self__")
+ for cls in inspect.getmro(self.cls):
55
+ if self.name in cls.__dict__:
56
+ return isinstance(cls.__dict__[self.name], classmethod)
57
+ return False
58
59
60
def is_property(self) -> bool:
0 commit comments