Filter self names in a more correct way, fixes #1275
This commit is contained in:
1 parent
8ac7d1fdb6
commit
5a2e3ee8e3
2 files changed
+2
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user