mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-21 00:40:01 +02:00
removes inheritance warning for descriptors
This commit is contained in:
parent
99aa38fcfe
commit
964a62d4b4
@ -10,6 +10,7 @@ from pydase.observer_pattern.observable.observable import (
|
|||||||
)
|
)
|
||||||
from pydase.utils.helpers import (
|
from pydase.utils.helpers import (
|
||||||
get_class_and_instance_attributes,
|
get_class_and_instance_attributes,
|
||||||
|
is_descriptor,
|
||||||
is_property_attribute,
|
is_property_attribute,
|
||||||
)
|
)
|
||||||
from pydase.utils.serialization.serializer import (
|
from pydase.utils.serialization.serializer import (
|
||||||
@ -68,7 +69,7 @@ class DataService(AbstractDataService):
|
|||||||
if not issubclass(
|
if not issubclass(
|
||||||
value_class,
|
value_class,
|
||||||
(int | float | bool | str | list | dict | Enum | u.Quantity | Observable),
|
(int | float | bool | str | list | dict | Enum | u.Quantity | Observable),
|
||||||
):
|
) and not is_descriptor(__value):
|
||||||
logger.warning(
|
logger.warning(
|
||||||
"Class '%s' does not inherit from DataService. This may lead to"
|
"Class '%s' does not inherit from DataService. This may lead to"
|
||||||
" unexpected behaviour!",
|
" unexpected behaviour!",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user