Commit 4c6cc262 authored by Simon's avatar Simon Committed by oroulet

Set type of nodeid to ua.NodeId

parent 4e81c8cc
...@@ -48,7 +48,7 @@ class Node: ...@@ -48,7 +48,7 @@ class Node:
""" """
def __init__(self, session: AbstractSession, nodeid: Union[ua.NodeId, str, int]): def __init__(self, session: AbstractSession, nodeid: Union[ua.NodeId, str, int]):
self.session = session self.session = session
self.nodeid = None self.nodeid: ua.NodeId
if isinstance(nodeid, Node): if isinstance(nodeid, Node):
self.nodeid = nodeid.nodeid self.nodeid = nodeid.nodeid
elif isinstance(nodeid, ua.NodeId): elif isinstance(nodeid, ua.NodeId):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment