From 86dd15d3f6593bef25347a5d6a051cd46bbec0bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Wed, 2 Aug 2023 12:06:22 +0200 Subject: [PATCH] update warning function to ignore TaskManager --- src/pyDataInterface/utils/warnings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyDataInterface/utils/warnings.py b/src/pyDataInterface/utils/warnings.py index 377d2c4..cb2ac36 100644 --- a/src/pyDataInterface/utils/warnings.py +++ b/src/pyDataInterface/utils/warnings.py @@ -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."