1
0
forked from VimPlug/jedi

Class inheritance definitions shouldn't be params. It's just statements.

This commit is contained in:
Dave Halter
2014-09-04 12:28:50 +02:00
parent 1df025c39d
commit 06699993f1
2 changed files with 18 additions and 15 deletions

View File

@@ -324,7 +324,6 @@ class Evaluator(object):
# statement name definitions. Only return, if it's one name and one
# name only. Otherwise it's a mixture between a definition and a
# reference. In this case it's just a definition. So we stay on it.
print stmt.get_defined_names()
if len(call_path) == 1 and isinstance(call_path[0], pr.NamePart) \
and call_path[0] in [d.names[-1] for d in stmt.get_defined_names()]:
return [call_path[0]]