1
0
forked from VimPlug/jedi

Filter self names in a more correct way, fixes #1275

This commit is contained in:
Dave Halter
2019-02-25 00:25:57 +01:00
parent 8ac7d1fdb6
commit 5a2e3ee8e3
2 changed files with 2 additions and 1 deletions

View File

@@ -443,7 +443,7 @@ class SelfAttributeFilter(ClassFilter):
for name in names:
trailer = name.parent
if trailer.type == 'trailer' \
and len(trailer.children) == 2 \
and len(trailer.parent.children) == 2 \
and trailer.children[0] == '.':
if name.is_definition() and self._access_possible(name):
yield name

View File

@@ -36,6 +36,7 @@ class TestClass(object):
self2.var_inst = first_param
self2.second = second_param
self2.first = first_param
self2.first.var_on_argument = 5
a = 3
def var_func(self):