mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-21 16:50:02 +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__
|
||||
module_name = __value.__class__.__module__
|
||||
|
||||
if module_name not in ["builtins", "__builtin__"] and base_class_name not in [
|
||||
"DataService",
|
||||
"list",
|
||||
]:
|
||||
if module_name not in [
|
||||
"builtins",
|
||||
"__builtin__",
|
||||
"asyncio.unix_events",
|
||||
] and base_class_name not in ["DataService", "list", "Enum"]:
|
||||
logger.warning(
|
||||
f"Warning: Class {type(__value).__name__} does not inherit from DataService."
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user