From 1c369c981d1b13bd06063e686a04e2e4849ed45a Mon Sep 17 00:00:00 2001 From: Alexander Schrode Date: Tue, 23 Aug 2022 14:55:37 +0200 Subject: [PATCH] add integer and uinteger For completness, these datatypes are abstract! If they are used in structs, abstract types are either Variant or ExtensionObjects. If they only contain basic types (int16, float, double..) they are Variants. --- asyncua/ua/uatypes.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/asyncua/ua/uatypes.py b/asyncua/ua/uatypes.py index 91c0b9ef8..5ea7ef54a 100644 --- a/asyncua/ua/uatypes.py +++ b/asyncua/ua/uatypes.py @@ -927,6 +927,13 @@ def get_shape(mylist): return dims +# For completness, these datatypes are abstract! +# If they are used in structs, abstract types are either Variant or ExtensionObjects. +# If they only contain basic types (int16, float, double..) they are Variants +UInteger = Variant +Integer = Variant + + @dataclass(frozen=True) class DataValue: """