Merge pull request #173 from tiqi-group/fix/remove_method_warning

Fix: removes warning message when initialising a Client
This commit is contained in:
Mose Müller
2024-10-03 10:57:56 +02:00
committed by GitHub

View File

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