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
76b3704a
Commit
76b3704a
authored
4 months ago
by
KERDREUX Jerome
Browse files
Options
Downloads
Patches
Plain Diff
Fix uuid test
parent
0879577a
No related branches found
No related tags found
1 merge request
!1
First try of type hints
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libs/lib/xaal/lib/tools.py
+2
-2
2 additions, 2 deletions
libs/lib/xaal/lib/tools.py
with
2 additions
and
2 deletions
libs/lib/xaal/lib/tools.py
+
2
−
2
View file @
76b3704a
...
...
@@ -101,11 +101,11 @@ def bytes_to_uuid(val: bytes) -> Optional[UUID]:
return
None
def
is_valid_uuid
(
val
:
U
nion
[
UUID
,
str
]
)
->
bool
:
def
is_valid_uuid
(
val
:
U
UID
)
->
bool
:
return
isinstance
(
val
,
UUID
)
def
is_valid_address
(
val
:
U
nion
[
UUID
,
str
]
)
->
bool
:
def
is_valid_address
(
val
:
U
UID
)
->
bool
:
return
is_valid_uuid
(
val
)
...
...
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