forked from VimPlug/jedi
Fix issue with mixed objects, fixes #1480
This commit is contained in:
@@ -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