@@ -200,7 +200,7 @@ def get_children_variables(self, fmt=None, scope=None):
200200
201201 return children_variables
202202
203- def change_variable (self , name , value , py_db , fmt = None ):
203+ def change_variable (self , name , value , py_db , fmt = None , scope : Optional [ ScopeRequest ] = None ):
204204 children_variable = self .get_child_variable_named (name )
205205 if children_variable is None :
206206 return None
@@ -255,12 +255,10 @@ def __init__(self, py_db, frame, register_variable):
255255 self ._register_variable = register_variable
256256 self ._register_variable (self )
257257
258- def change_variable (self , name , value , py_db , fmt = None ):
258+ def change_variable (self , name , value , py_db , fmt = None , scope : Optional [ ScopeRequest ] = None ):
259259 frame = self .frame
260-
261- pydevd_vars .change_attr_expression (frame , name , value , py_db )
262-
263- return self .get_child_variable_named (name , fmt = fmt )
260+ pydevd_vars .change_attr_expression (frame , name , value , py_db , scope = scope )
261+ return self .get_child_variable_named (name , fmt = fmt , scope = scope )
264262
265263 @silence_warnings_decorator
266264 @overrides (_AbstractVariable .get_children_variables )
0 commit comments