From 3ac150d54e8e8672912a892a63b59ba64ceb9eab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20M=C3=B6ller?= Date: Thu, 5 Oct 2023 16:44:49 +0200 Subject: [PATCH] model.datatypes: add `DateTimeStamp` to `AnyXSDType` The AAS Manager uses typehints to generate a list of possible types for a value. Since `DateTimeStamp` was missing, it was impossible to store a `DateTimeStamp` value via AAS Manager. --- basyx/aas/model/datatypes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/basyx/aas/model/datatypes.py b/basyx/aas/model/datatypes.py index 4705ed6a9..0d02e25f3 100644 --- a/basyx/aas/model/datatypes.py +++ b/basyx/aas/model/datatypes.py @@ -375,10 +375,10 @@ def from_string(cls, value: str) -> "NormalizedString": AnyXSDType = Union[ - Duration, DayTimeDuration, YearMonthDuration, DateTime, Date, Time, GYearMonth, GYear, GMonthDay, GMonth, GDay, - Boolean, Base64Binary, HexBinary, Float, Double, Decimal, Integer, Long, Int, Short, Byte, NonPositiveInteger, - NegativeInteger, NonNegativeInteger, PositiveInteger, UnsignedLong, UnsignedInt, UnsignedShort, UnsignedByte, - AnyURI, String, NormalizedString] + Duration, DayTimeDuration, YearMonthDuration, DateTime, DateTimeStamp, Date, Time, GYearMonth, GYear, GMonthDay, + GMonth, GDay, Boolean, Base64Binary, HexBinary, Float, Double, Decimal, Integer, Long, Int, Short, Byte, + NonPositiveInteger, NegativeInteger, NonNegativeInteger, PositiveInteger, UnsignedLong, UnsignedInt, UnsignedShort, + UnsignedByte, AnyURI, String, NormalizedString] XSD_TYPE_NAMES: Dict[Type[AnyXSDType], str] = {