def assign(value_key: Any, val: ValueNode) -> None: assert val._get_parent() is None v = val v._set_parent(self) v._set_key(value_key) _update_types(v, self._metadata.element_type, None) self.__dict__["_content"][value_key] = v
def assign(value_key: Any, val: ValueNode) -> None: assert val._get_parent() is None v = val v._set_parent(self) v._set_key(value_key) self.__dict__["_content"][value_key] = v