Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions shiny/render/_data_frame_utils/_tbl_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,12 @@ def serialize_dtype(col: nw.Series) -> FrameDtype:
type_ = "datetime"
elif isinstance(dtype, nw.Duration):
type_ = "duration"
elif hasattr(nw, "Time") and isinstance(
dtype,
# https://github.com/narwhals-dev/narwhals/pull/2113
nw.Time, # pyright: ignore[reportUnknownMemberType,reportAttributeAccessIssue]
):
type_ = "time"
elif isinstance(dtype, nw.Object):
type_ = "object"
if series_contains_htmltoolslike(col):
Expand Down
1 change: 1 addition & 0 deletions shiny/render/_data_frame_utils/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ class FrameDtypeSubset(TypedDict):
"boolean",
"date",
"datetime",
"time",
"duration",
"object",
"unknown",
Expand Down
Loading