Skip to content

Commit 1674911

Browse files
jkhsjdhjss-heppner
authored andcommitted
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.
1 parent 6fd70b8 commit 1674911

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

basyx/aas/model/datatypes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -375,10 +375,10 @@ def from_string(cls, value: str) -> "NormalizedString":
375375

376376

377377
AnyXSDType = Union[
378-
Duration, DayTimeDuration, YearMonthDuration, DateTime, Date, Time, GYearMonth, GYear, GMonthDay, GMonth, GDay,
379-
Boolean, Base64Binary, HexBinary, Float, Double, Decimal, Integer, Long, Int, Short, Byte, NonPositiveInteger,
380-
NegativeInteger, NonNegativeInteger, PositiveInteger, UnsignedLong, UnsignedInt, UnsignedShort, UnsignedByte,
381-
AnyURI, String, NormalizedString]
378+
Duration, DayTimeDuration, YearMonthDuration, DateTime, DateTimeStamp, Date, Time, GYearMonth, GYear, GMonthDay,
379+
GMonth, GDay, Boolean, Base64Binary, HexBinary, Float, Double, Decimal, Integer, Long, Int, Short, Byte,
380+
NonPositiveInteger, NegativeInteger, NonNegativeInteger, PositiveInteger, UnsignedLong, UnsignedInt, UnsignedShort,
381+
UnsignedByte, AnyURI, String, NormalizedString]
382382

383383

384384
XSD_TYPE_NAMES: Dict[Type[AnyXSDType], str] = {

0 commit comments

Comments
 (0)