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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xAAL
Code
Python
Commits
82a4c273
Commit
82a4c273
authored
7 months ago
by
KERDREUX Jerome
Browse files
Options
Downloads
Patches
Plain Diff
No more TypeVar
TypeVar are not suitable for method only type checking
parent
ae8e6427
Branches
Branches containing commit
No related tags found
1 merge request
!1
First try of type hints
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
libs/lib/xaal/lib/types.py
+0
-17
0 additions, 17 deletions
libs/lib/xaal/lib/types.py
with
0 additions
and
17 deletions
libs/lib/xaal/lib/types.py
deleted
100644 → 0
+
0
−
17
View file @
ae8e6427
# Python type hints for the xAAL library
from
typing
import
TYPE_CHECKING
,
TypeVar
if
TYPE_CHECKING
:
from
.devices
import
Device
,
Attributes
,
Attribute
from
.engine
import
Engine
from
.aioengine
import
AsyncEngine
from
.bindings
import
UUID
DeviceT
=
TypeVar
(
"
DeviceT
"
,
bound
=
"
Device
"
)
AttributeT
=
TypeVar
(
"
AttributeT
"
,
bound
=
"
Attribute
"
)
AttributesT
=
TypeVar
(
"
AttributesT
"
,
bound
=
"
Attributes
"
)
EngineT
=
TypeVar
(
"
EngineT
"
,
bound
=
"
Engine
"
)
AsyncEngineT
=
TypeVar
(
"
AsyncEngineT
"
,
bound
=
"
AsyncEngine
"
)
UUIDT
=
TypeVar
(
"
UUIDT
"
,
bound
=
"
UUID
"
)
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