forked from VimPlug/jedi
finally fixed the most prominent bug, that is being featured on the front page of github-jedi -> class methods shouldn't return their params as a completion
This commit is contained in:
@@ -108,7 +108,7 @@ class Script(object):
|
||||
for s in scopes:
|
||||
# TODO is this really the right way? just ignore the funcs? \
|
||||
# do the magic functions first? and then recheck here?
|
||||
if not isinstance(s, evaluate.Function):
|
||||
if not s.isinstance(evaluate.Function):
|
||||
if isinstance(s, imports.ImportPath):
|
||||
if like == 'import':
|
||||
l = self.module.get_line(self.pos[0])[:self.pos[1]]
|
||||
|
||||
Reference in New Issue
Block a user