Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
opcua-asyncio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
opcua-asyncio
Commits
92f0e083
Commit
92f0e083
authored
Jun 06, 2022
by
Alexander Schrode
Committed by
oroulet
Jun 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix wrong return type
parent
6cb5f27a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
asyncua/common/events.py
asyncua/common/events.py
+4
-4
No files found.
asyncua/common/events.py
View file @
92f0e083
...
...
@@ -137,7 +137,7 @@ class Event:
return
name
async
def
get_filter_from_event_type
(
eventtypes
):
async
def
get_filter_from_event_type
(
eventtypes
:
List
[
"Node"
]
):
evfilter
=
ua
.
EventFilter
()
evfilter
.
SelectClauses
=
await
select_clauses_from_evtype
(
eventtypes
)
evfilter
.
WhereClause
=
await
where_clause_from_evtype
(
eventtypes
)
...
...
@@ -223,15 +223,15 @@ async def select_event_attributes_from_type_node(node: "Node", attributeSelector
return
attributes
async
def
get_event_properties_from_type_node
(
node
:
"Node"
)
->
List
[
ua
.
NodeId
]:
async
def
get_event_properties_from_type_node
(
node
:
"Node"
)
->
List
[
"Node"
]:
return
await
select_event_attributes_from_type_node
(
node
,
lambda
n
:
n
.
get_properties
())
async
def
get_event_variables_from_type_node
(
node
:
"Node"
)
->
List
[
ua
.
NodeId
]:
async
def
get_event_variables_from_type_node
(
node
:
"Node"
)
->
List
[
"Node"
]:
return
await
select_event_attributes_from_type_node
(
node
,
lambda
n
:
n
.
get_variables
())
async
def
get_event_objects_from_type_node
(
node
:
"Node"
)
->
List
[
ua
.
NodeId
]:
async
def
get_event_objects_from_type_node
(
node
:
"Node"
)
->
List
[
"Node"
]:
return
await
select_event_attributes_from_type_node
(
node
,
lambda
n
:
n
.
get_children
(
refs
=
ua
.
ObjectIds
.
HasComponent
,
nodeclassmask
=
ua
.
NodeClass
.
Object
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment