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]]
|
||||
|
||||
@@ -25,7 +25,7 @@ class ModuleNotFound(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class ImportPath(object):
|
||||
class ImportPath(parsing.Base):
|
||||
"""
|
||||
An ImportPath is the path of a `parsing.Import` object.
|
||||
"""
|
||||
|
||||
@@ -20,6 +20,9 @@ class FindClass():
|
||||
#? ['ret']
|
||||
TestClass.ret
|
||||
|
||||
#? []
|
||||
FindClass().find_class.self
|
||||
|
||||
# set variables, which should not be included, because they don't belong to the
|
||||
# class
|
||||
second = 1
|
||||
|
||||
Reference in New Issue
Block a user