diff --git a/src/pydase/data_service/data_service.py b/src/pydase/data_service/data_service.py index e625ad9..cc7d5ff 100644 --- a/src/pydase/data_service/data_service.py +++ b/src/pydase/data_service/data_service.py @@ -1,5 +1,6 @@ import inspect import logging +from collections.abc import Callable from enum import Enum from typing import Any @@ -68,7 +69,18 @@ class DataService(AbstractDataService): if not issubclass( value_class, - (int | float | bool | str | list | dict | Enum | u.Quantity | Observable), + ( + int + | float + | bool + | str + | list + | dict + | Enum + | u.Quantity + | Observable + | Callable + ), ) and not is_descriptor(__value): logger.warning( "Class '%s' does not inherit from DataService. This may lead to"