Skip to content
Snippets Groups Projects
Commit 890d18a0 authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

Fix pyright warning

parent 57388ee1
No related branches found
No related tags found
1 merge request!1First try of type hints
...@@ -156,7 +156,7 @@ class AsyncEngine(core.EngineMixin): ...@@ -156,7 +156,7 @@ class AsyncEngine(core.EngineMixin):
request for each targets identied in the engine request for each targets identied in the engine
""" """
if not msg.is_request(): if not msg.is_request():
return # should not happen, but pyright need this check return
targets = core.filter_msg_for_devices(msg, self.devices) targets = core.filter_msg_for_devices(msg, self.devices)
for target in targets: for target in targets:
......
...@@ -115,8 +115,8 @@ class Engine(core.EngineMixin): ...@@ -115,8 +115,8 @@ class Engine(core.EngineMixin):
request for each targets identied in the engine request for each targets identied in the engine
""" """
if not msg.is_request(): if not msg.is_request():
return # should not happen, but pyright need this check return
targets = core.filter_msg_for_devices(msg, self.devices) targets = core.filter_msg_for_devices(msg, self.devices)
for target in targets: for target in targets:
if msg.is_request_isalive(): if msg.is_request_isalive():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment