mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-26 01:37:15 +08:00
Small change
This commit is contained in:
@@ -122,7 +122,7 @@ def _search_function_executions(evaluator, module_context, funcdef, string_name)
|
|||||||
compare_node = funcdef
|
compare_node = funcdef
|
||||||
if string_name == '__init__':
|
if string_name == '__init__':
|
||||||
cls = get_parent_scope(funcdef)
|
cls = get_parent_scope(funcdef)
|
||||||
if isinstance(cls, tree.Class):
|
if cls.type == 'classdef':
|
||||||
string_name = cls.name.value
|
string_name = cls.name.value
|
||||||
compare_node = cls
|
compare_node = cls
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user