From eddf3dd2fc2895ebeb91dc1e1990a4a75943d246 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Thu, 9 Nov 2023 15:44:21 +0100 Subject: [PATCH] adds docstring --- src/pydase/data_service/state_manager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pydase/data_service/state_manager.py b/src/pydase/data_service/state_manager.py index 60023e3..6cae899 100644 --- a/src/pydase/data_service/state_manager.py +++ b/src/pydase/data_service/state_manager.py @@ -46,6 +46,10 @@ def load_state(func: Callable[..., Any]) -> Callable[..., Any]: def has_load_state_decorator(prop: property): + """Determines if the property's setter method is decorated with the `@load_state` + decorator. + """ + if prop and isinstance(prop, property): # Check if the setter function has the attribute set by the @load_state # decorator