mirror of
https://github.com/tiqi-group/pydase.git
synced 2026-02-09 04:08:39 +01:00
chore: type hints, mypy issues
This commit is contained in:
@@ -41,11 +41,11 @@ def load_state(func: Callable[..., Any]) -> Callable[..., Any]:
|
|||||||
... self._name = value
|
... self._name = value
|
||||||
"""
|
"""
|
||||||
|
|
||||||
func._load_state = True
|
func._load_state = True # type: ignore
|
||||||
return func
|
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`
|
"""Determines if the property's setter method is decorated with the `@load_state`
|
||||||
decorator.
|
decorator.
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user