Fix issue with mixed objects, fixes #1480
This commit is contained in:
1 parent
0435e0e85c
commit
da2a55c73f
4 files changed
+27
-5
No files matched your search
@@ -315,6 +315,9 @@ class DirectObjectAccess(object):
|
||||
def is_class(self):
|
||||
return inspect.isclass(self._obj)
|
||||
|
||||
def is_function(self):
|
||||
return inspect.isfunction(self._obj) or inspect.ismethod(self._obj)
|
||||
|
||||
def is_module(self):
|
||||
return inspect.ismodule(self._obj)
|
||||
|
||||
|
||||
Reference in new issue
Block a user