mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-22 09:10:01 +02:00
fixing warning messages comming from asyncio
This commit is contained in:
parent
9bcce0a376
commit
cbdf894073
@ -5,10 +5,11 @@ def warn_if_instance_class_does_not_inherit_from_DataService(__value: object) ->
|
|||||||
base_class_name = __value.__class__.__base__.__name__
|
base_class_name = __value.__class__.__base__.__name__
|
||||||
module_name = __value.__class__.__module__
|
module_name = __value.__class__.__module__
|
||||||
|
|
||||||
if module_name not in ["builtins", "__builtin__"] and base_class_name not in [
|
if module_name not in [
|
||||||
"DataService",
|
"builtins",
|
||||||
"list",
|
"__builtin__",
|
||||||
]:
|
"asyncio.unix_events",
|
||||||
|
] and base_class_name not in ["DataService", "list", "Enum"]:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
f"Warning: Class {type(__value).__name__} does not inherit from DataService."
|
f"Warning: Class {type(__value).__name__} does not inherit from DataService."
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user