From 6c15b85679ba832f8e9bbad164538c9df320b92b 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] fixing tests --- tests/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/__init__.py b/tests/__init__.py index 48c842d..9249fc5 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,5 +1,5 @@ from collections.abc import Generator -from typing import Any, cast +from typing import Any import pytest from loguru import logger @@ -23,4 +23,4 @@ def emit(self: Any, parent_path: str, name: str, value: Any) -> None: print(f"{parent_path}.{name} = {value}") -cast(CallbackManager, DataService._callback_manager).emit_notification = emit # type: ignore +CallbackManager.emit_notification = emit # type: ignore