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
9cd2a79e
Commit
9cd2a79e
authored
3 months ago
by
KERDREUX Jerome
Browse files
Options
Downloads
Patches
Plain Diff
Py 3.8 doesn't support type dict[]
Switch to Dict[]
parent
ee12f8fd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libs/lib/xaal/lib/devices.py
+3
-3
3 additions, 3 deletions
libs/lib/xaal/lib/devices.py
with
3 additions
and
3 deletions
libs/lib/xaal/lib/devices.py
+
3
−
3
View file @
9cd2a79e
...
...
@@ -21,7 +21,7 @@
import
logging
import
time
import
typing
from
typing
import
Any
,
Optional
,
Union
,
Callable
,
Awaitable
from
typing
import
Any
,
Optional
,
Union
,
Callable
,
Awaitable
,
Dict
from
tabulate
import
tabulate
...
...
@@ -133,7 +133,7 @@ class Device(object):
self
.
next_alive
=
0
# Default attributes & methods
self
.
__attributes
=
Attributes
()
self
.
methods
:
d
ict
[
str
,
MethodT
]
=
{
self
.
methods
:
D
ict
[
str
,
MethodT
]
=
{
'
get_attributes
'
:
self
.
_get_attributes
,
'
get_description
'
:
self
.
_get_description
,
}
...
...
@@ -225,7 +225,7 @@ class Device(object):
if
name
in
self
.
methods
:
del
self
.
methods
[
name
]
def
get_methods
(
self
)
->
d
ict
[
str
,
MethodT
]:
def
get_methods
(
self
)
->
D
ict
[
str
,
MethodT
]:
return
self
.
methods
def
update_alive
(
self
):
...
...
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