1
0
forked from VimPlug/jedi

Small change

This commit is contained in:
Dave Halter
2019-04-12 12:54:38 +02:00
parent 3bef9a67b8
commit 0bf4bf36f0

View File

@@ -122,7 +122,7 @@ def _search_function_executions(evaluator, module_context, funcdef, string_name)
compare_node = funcdef
if string_name == '__init__':
cls = get_parent_scope(funcdef)
if isinstance(cls, tree.Class):
if cls.type == 'classdef':
string_name = cls.name.value
compare_node = cls