forked from VimPlug/jedi
resolved little ordering problem
This commit is contained in:
@@ -759,7 +759,9 @@ def get_defined_names_for_position(obj, position=(float('inf'), float('inf'))):
|
|||||||
:param position: the position as a row/column tuple, default is infinity.
|
:param position: the position as a row/column tuple, default is infinity.
|
||||||
"""
|
"""
|
||||||
names = obj.get_defined_names()
|
names = obj.get_defined_names()
|
||||||
if not position:
|
# instances have special rules, always return all the possible completions,
|
||||||
|
# because class variables are always valid and the `self.` variables, too.
|
||||||
|
if not position or isinstance(obj, Instance):
|
||||||
return names
|
return names
|
||||||
names_new = []
|
names_new = []
|
||||||
for n in names:
|
for n in names:
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ class A(object):
|
|||||||
a.upper
|
a.upper
|
||||||
#? []
|
#? []
|
||||||
a.append
|
a.append
|
||||||
a = list
|
a = list()
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.b = ""
|
self.b = ""
|
||||||
self.b = 3
|
self.b = 3
|
||||||
@@ -119,15 +119,21 @@ class A(object):
|
|||||||
|
|
||||||
def before(self):
|
def before(self):
|
||||||
self.a = 1
|
self.a = 1
|
||||||
#? int() str()
|
#? list() str() int()
|
||||||
self.a
|
self.a
|
||||||
|
|
||||||
#? ['after']
|
#? ['after']
|
||||||
self.after
|
self.after
|
||||||
|
|
||||||
|
self.c = 3
|
||||||
|
#? set() int()
|
||||||
|
self.c
|
||||||
|
|
||||||
def after(self):
|
def after(self):
|
||||||
self.a = ''
|
self.a = ''
|
||||||
|
|
||||||
|
c = set()
|
||||||
|
|
||||||
#? list()
|
#? list()
|
||||||
A.a
|
A.a
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user