mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-06-05 05:00:40 +02:00
adds docstring
This commit is contained in:
parent
c2a22d4456
commit
eddf3dd2fc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user