adds docstring

This commit is contained in:
Mose Müller 2023-11-09 15:44:21 +01:00
parent c2a22d4456
commit eddf3dd2fc

View File

@ -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