From 6225c2e0db03c00f785cbe6d8116d3784d383b25 Mon Sep 17 00:00:00 2001 From: Simon <1simonsteven@gmail.com> Date: Thu, 18 May 2023 19:51:15 +0200 Subject: [PATCH] Set type of nodeid to ua.NodeId --- asyncua/common/node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asyncua/common/node.py b/asyncua/common/node.py index d6d9faf2d..b8c647620 100644 --- a/asyncua/common/node.py +++ b/asyncua/common/node.py @@ -48,7 +48,7 @@ class Node: """ def __init__(self, session: AbstractSession, nodeid: Union[ua.NodeId, str, int]): self.session = session - self.nodeid = None + self.nodeid: ua.NodeId if isinstance(nodeid, Node): self.nodeid = nodeid.nodeid elif isinstance(nodeid, ua.NodeId):