From 7268bf6e476b88fe5496922b7e18bdabda74c7e0 Mon Sep 17 00:00:00 2001
From: jkerdreux-imt <jerome.kerdreux@imt-atlantique.fr>
Date: Wed, 27 Nov 2024 12:16:30 +0100
Subject: [PATCH] Oups, subscribers func take a Message not a string

---
 libs/lib/xaal/lib/core.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libs/lib/xaal/lib/core.py b/libs/lib/xaal/lib/core.py
index 716ecda6..e85a03ec 100644
--- a/libs/lib/xaal/lib/core.py
+++ b/libs/lib/xaal/lib/core.py
@@ -37,8 +37,8 @@ FuncT = TypeVar("FuncT", Callable[[], None], Callable[[], Awaitable[None]])
 # Function type w/ message as argument (subscribers), no return
 SubFuncT = TypeVar(
         "SubFuncT",
-        Callable[[str], None],
-        Callable[[str], Awaitable[None]]
+        Callable[['Message'], None],
+        Callable[['Message'], Awaitable[None]]
 )
 
 logger = logging.getLogger(__name__)
-- 
GitLab