chore: type hints, mypy issues

This commit is contained in:
Mose Müller 2023-11-16 08:33:54 +01:00
parent 28410a97f5
commit 0ea997384c

View File

@ -41,11 +41,11 @@ def load_state(func: Callable[..., Any]) -> Callable[..., Any]:
... self._name = value
"""
func._load_state = True
func._load_state = True # type: ignore
return func
def has_load_state_decorator(prop: property):
def has_load_state_decorator(prop: property) -> bool:
"""Determines if the property's setter method is decorated with the `@load_state`
decorator.
"""