From 78b94d4fc802d284d9c25c869a09a5c65650ff0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Tue, 3 Oct 2023 16:12:07 +0200 Subject: [PATCH] feat: updating method docstring --- src/pydase/data_service/data_service.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/pydase/data_service/data_service.py b/src/pydase/data_service/data_service.py index ffe977f..57882c4 100644 --- a/src/pydase/data_service/data_service.py +++ b/src/pydase/data_service/data_service.py @@ -198,22 +198,10 @@ class DataService(rpyc.Service, AbstractDataService): value, readonly status, and documentation if any in the resulting dictionary. Attributes and methods starting with an underscore are ignored. - For attributes, methods, and properties unique to the class (not inherited from - the base class), the method uses the format "." for keys in the - dictionary. If no prefix is provided, the key format is simply "". - - For nested DataService instances, the method serializes recursively and appends - the key of the nested instance to the prefix in the format ".". - + For nested DataService instances, the method serializes recursively. For attributes of type list, each item in the list is serialized individually. If an item in the list is an instance of DataService, it is serialized - recursively with its key in the format "..", where - "item_id" is the id of the item itself. - - Args: - prefix (str, optional): The prefix for each key in the serialized - dictionary. This is mainly used when this method is called recursively to - maintain the structure of nested instances. + recursively. Returns: dict: The serialized instance.