We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Time
serialize_dtype
1 parent 1ff586f commit 33e290aCopy full SHA for 33e290a
shiny/render/_data_frame_utils/_tbl_data.py
@@ -202,6 +202,12 @@ def serialize_dtype(col: nw.Series) -> FrameDtype:
202
type_ = "datetime"
203
elif isinstance(dtype, nw.Duration):
204
type_ = "duration"
205
+ elif hasattr(nw, "Time") and isinstance(
206
+ dtype,
207
+ # https://github.com/narwhals-dev/narwhals/pull/2113
208
+ nw.Time, # pyright: ignore[reportUnknownMemberType,reportAttributeAccessIssue]
209
+ ):
210
+ type_ = "time"
211
elif isinstance(dtype, nw.Object):
212
type_ = "object"
213
if series_contains_htmltoolslike(col):
shiny/render/_data_frame_utils/_types.py
@@ -179,6 +179,7 @@ class FrameDtypeSubset(TypedDict):
179
"boolean",
180
"date",
181
"datetime",
182
+ "time",
183
"duration",
184
"object",
185
"unknown",
0 commit comments