Skip to content

Commit f06cdb9

Browse files
author
Michael Johansen
committed
Update the all types example.
Signed-off-by: Michael Johansen <[email protected]>
1 parent 670d971 commit f06cdb9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/all_types/define_types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,9 @@ class MyStrEnum(str, enum.Enum):
5959
# NI types
6060
"nitypes_Scalar": Scalar(42, "m"),
6161
"nitypes_AnalogWaveform": AnalogWaveform.from_array_1d(np.array([1.0, 2.0, 3.0])),
62+
# supported 2D collections
63+
"list_list_float": [[1.0, 2.0], [3.0, 4.0]],
64+
"tuple_tuple_float": ((1.0, 2.0), (3.0, 4.0)),
65+
"set_list_float": set([(1.0, 2.0), (3.0, 4.0)]),
66+
"frozenset_frozenset_float": frozenset([frozenset([1.0, 2.0]), frozenset([3.0, 4.0])]),
6267
}

0 commit comments

Comments
 (0)