Merge pull request #163 from tiqi-group/fix/removes_PerInstanceTaskDescriptor_warning

fix: removes inheritance warning for descriptors
This commit is contained in:
Mose Müller 2024-09-23 13:35:44 +02:00 committed by GitHub
commit 757dc9aa3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "pydase" name = "pydase"
version = "0.10.3" version = "0.10.4"
description = "A flexible and robust Python library for creating, managing, and interacting with data services, with built-in support for web and RPC servers, and customizable features for diverse use cases." description = "A flexible and robust Python library for creating, managing, and interacting with data services, with built-in support for web and RPC servers, and customizable features for diverse use cases."
authors = ["Mose Mueller <mosmuell@ethz.ch>"] authors = ["Mose Mueller <mosmuell@ethz.ch>"]
readme = "README.md" readme = "README.md"

View File

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