update warning function to ignore TaskManager

This commit is contained in:
Mose Müller 2023-08-02 12:06:22 +02:00
parent be624f8f07
commit 86dd15d3f6

View File

@ -14,7 +14,7 @@ def warn_if_instance_class_does_not_inherit_from_DataService(__value: object) ->
"_abc",
]
and base_class_name not in ["DataService", "list", "Enum"]
and type(__value).__name__ not in ["CallbackManager"]
and type(__value).__name__ not in ["CallbackManager", "TaskManager"]
):
logger.warning(
f"Warning: Class {type(__value).__name__} does not inherit from DataService."