mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-12-30 01:21:17 +01:00
adds docstring
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user