mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-06-06 13:30:41 +02:00
deprecates update_DataService_attribute function
This commit is contained in:
parent
d0377be455
commit
6c2c5d4ad1
@ -222,6 +222,15 @@ class DataService(rpyc.Service, AbstractDataService):
|
|||||||
attr_name: str,
|
attr_name: str,
|
||||||
value: Any,
|
value: Any,
|
||||||
) -> None:
|
) -> None:
|
||||||
|
warnings.warn(
|
||||||
|
"'update_DataService_attribute' is deprecated and will be removed in a "
|
||||||
|
"future version. "
|
||||||
|
"Service state management is handled by `pydase.data_service.state_manager`"
|
||||||
|
"now, instead.",
|
||||||
|
DeprecationWarning,
|
||||||
|
stacklevel=2,
|
||||||
|
)
|
||||||
|
|
||||||
# If attr_name corresponds to a list entry, extract the attr_name and the index
|
# If attr_name corresponds to a list entry, extract the attr_name and the index
|
||||||
attr_name, index = parse_list_attr_and_index(attr_name)
|
attr_name, index = parse_list_attr_and_index(attr_name)
|
||||||
# Traverse the object according to the path parts
|
# Traverse the object according to the path parts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user