File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
shiny/render/_data_frame_utils Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -202,6 +202,12 @@ def serialize_dtype(col: nw.Series) -> FrameDtype:
202
202
type_ = "datetime"
203
203
elif isinstance (dtype , nw .Duration ):
204
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"
205
211
elif isinstance (dtype , nw .Object ):
206
212
type_ = "object"
207
213
if series_contains_htmltoolslike (col ):
Original file line number Diff line number Diff line change @@ -179,6 +179,7 @@ class FrameDtypeSubset(TypedDict):
179
179
"boolean" ,
180
180
"date" ,
181
181
"datetime" ,
182
+ "time" ,
182
183
"duration" ,
183
184
"object" ,
184
185
"unknown" ,
You can’t perform that action at this time.
0 commit comments