forked from VimPlug/jedi
Filter self names in a more correct way, fixes #1275
This commit is contained in:
@@ -443,7 +443,7 @@ class SelfAttributeFilter(ClassFilter):
|
|||||||
for name in names:
|
for name in names:
|
||||||
trailer = name.parent
|
trailer = name.parent
|
||||||
if trailer.type == 'trailer' \
|
if trailer.type == 'trailer' \
|
||||||
and len(trailer.children) == 2 \
|
and len(trailer.parent.children) == 2 \
|
||||||
and trailer.children[0] == '.':
|
and trailer.children[0] == '.':
|
||||||
if name.is_definition() and self._access_possible(name):
|
if name.is_definition() and self._access_possible(name):
|
||||||
yield name
|
yield name
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ class TestClass(object):
|
|||||||
self2.var_inst = first_param
|
self2.var_inst = first_param
|
||||||
self2.second = second_param
|
self2.second = second_param
|
||||||
self2.first = first_param
|
self2.first = first_param
|
||||||
|
self2.first.var_on_argument = 5
|
||||||
a = 3
|
a = 3
|
||||||
|
|
||||||
def var_func(self):
|
def var_func(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user