From 890d18a06d99b3afadd8271cf03da2e63eaab17a Mon Sep 17 00:00:00 2001
From: jkerdreux-imt <jerome.kerdreux@imt-atlantique.fr>
Date: Thu, 28 Nov 2024 09:45:38 +0100
Subject: [PATCH] Fix pyright warning

---
 libs/lib/xaal/lib/aioengine.py | 2 +-
 libs/lib/xaal/lib/engine.py    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libs/lib/xaal/lib/aioengine.py b/libs/lib/xaal/lib/aioengine.py
index 172ec34a..b9e7a175 100644
--- a/libs/lib/xaal/lib/aioengine.py
+++ b/libs/lib/xaal/lib/aioengine.py
@@ -156,7 +156,7 @@ class AsyncEngine(core.EngineMixin):
         request for each targets identied in the engine
         """
         if not msg.is_request():
-            return # should not happen, but pyright need this check
+            return
 
         targets = core.filter_msg_for_devices(msg, self.devices)
         for target in targets:
diff --git a/libs/lib/xaal/lib/engine.py b/libs/lib/xaal/lib/engine.py
index e7118e7c..f33c47b7 100644
--- a/libs/lib/xaal/lib/engine.py
+++ b/libs/lib/xaal/lib/engine.py
@@ -115,8 +115,8 @@ class Engine(core.EngineMixin):
         request for each targets identied in the engine
         """
         if not msg.is_request():
-            return # should not happen, but pyright need this check
-
+            return 
+        
         targets = core.filter_msg_for_devices(msg, self.devices)
         for target in targets:
             if msg.is_request_isalive():
-- 
GitLab