Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xAAL
Code
Python
Commits
890d18a0
Commit
890d18a0
authored
4 months ago
by
KERDREUX Jerome
Browse files
Options
Downloads
Patches
Plain Diff
Fix pyright warning
parent
57388ee1
No related branches found
No related tags found
1 merge request
!1
First try of type hints
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libs/lib/xaal/lib/aioengine.py
+1
-1
1 addition, 1 deletion
libs/lib/xaal/lib/aioengine.py
libs/lib/xaal/lib/engine.py
+2
-2
2 additions, 2 deletions
libs/lib/xaal/lib/engine.py
with
3 additions
and
3 deletions
libs/lib/xaal/lib/aioengine.py
+
1
−
1
View file @
890d18a0
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
libs/lib/xaal/lib/engine.py
+
2
−
2
View file @
890d18a0
...
...
@@ -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
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment