Skip to content

Commit 891ff1b

Browse files
author
Michael Johansen
committed
Update and run the all_types example.
Signed-off-by: Michael Johansen <[email protected]>
1 parent 207c898 commit 891ff1b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/all_types/define_types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Define types."""
22

3+
import datetime as dt
34
import enum
45

56
import numpy as np
@@ -70,6 +71,7 @@ class MyMixedEnum(enum.Enum):
7071
"float": 13.12,
7172
"int": 42,
7273
"str": "sample string",
74+
"dt_datetime": dt.datetime.now(),
7375
# supported enum and flag types
7476
"intflags": MyIntFlags.VALUE1 | MyIntFlags.VALUE4,
7577
"intenum": MyIntEnum.VALUE20,

0 commit comments

Comments
 (0)