1
0
forked from VimPlug/jedi

fix call signatures

This commit is contained in:
Dave Halter
2014-01-12 02:42:00 +01:00
parent 7a0dc41b62
commit bd239446f5
2 changed files with 5 additions and 4 deletions

View File

@@ -518,7 +518,8 @@ class Script(object):
debug.speed('func_call followed')
return [classes.CallDef(o, index, call) for o in origins
if o.isinstance(er.Function, er.Instance, er.Class)]
if o.isinstance(er.Function, er.Instance, er.Class)
or isinstance(o, compiled.PyObject) and o.type() != 'module']
def _func_call_and_param_index(self):
debug.speed('func_call start')