mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-22 17:10:02 +02:00
fix: readonly value is not overwritten anymore when changing attribute type
This commit is contained in:
parent
877ab42905
commit
b8d421eb90
@ -303,8 +303,10 @@ def set_nested_value_by_path(
|
|||||||
serialized_value = dump(value)
|
serialized_value = dump(value)
|
||||||
keys_to_keep = set(serialized_value.keys())
|
keys_to_keep = set(serialized_value.keys())
|
||||||
|
|
||||||
# TODO: you might want to pop "readonly" and/or "doc" from serialized_value if
|
# TODO: you might also want to pop "doc" from serialized_value if
|
||||||
# it is overwriting the values of the current dict
|
# it is overwriting the value of the current dict
|
||||||
|
serialized_value.pop("readonly") # type: ignore
|
||||||
|
|
||||||
next_level_serialized_object.update(serialized_value)
|
next_level_serialized_object.update(serialized_value)
|
||||||
|
|
||||||
# removes keys that are not present in the serialized new value
|
# removes keys that are not present in the serialized new value
|
||||||
|
Loading…
x
Reference in New Issue
Block a user