Skip to content

Commit 62c8933

Browse files
committed
chore: Add support for Narwhals Time dtype in serialize_dtype
1 parent 1ff586f commit 62c8933

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shiny/render/_data_frame_utils/_tbl_data.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ def serialize_dtype(col: nw.Series) -> FrameDtype:
202202
type_ = "datetime"
203203
elif isinstance(dtype, nw.Duration):
204204
type_ = "duration"
205+
elif isinstance(dtype, nw.Time):
206+
type_ = "time"
205207
elif isinstance(dtype, nw.Object):
206208
type_ = "object"
207209
if series_contains_htmltoolslike(col):

0 commit comments

Comments
 (0)