mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
fixed a dynamic array bug, that was created, because of the InstanceElement changes
This commit is contained in:
@@ -214,7 +214,7 @@ def _check_array_additions(compare_array, module, is_list):
|
||||
# must be instance
|
||||
stmt = element.var_args.parent_stmt()
|
||||
if isinstance(stmt, evaluate.InstanceElement):
|
||||
stop_classes = list(stop_classes) + [parsing.Function]
|
||||
stop_classes = list(stop_classes) + [evaluate.Function]
|
||||
return stmt.get_parent_until(stop_classes)
|
||||
|
||||
search_names = ['append', 'extend', 'insert'] if is_list else \
|
||||
|
||||
Reference in New Issue
Block a user