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 @@ -208,6 +208,12 @@ def serialize_dtype(col: nw.Series) -> FrameDtype:
208
208
nw .Time , # pyright: ignore[reportUnknownMemberType,reportAttributeAccessIssue]
209
209
):
210
210
type_ = "time"
211
+ elif hasattr (nw , "Binary" ) and isinstance (
212
+ dtype ,
213
+ # https://github.com/narwhals-dev/narwhals/pull/2243
214
+ nw .Binary , # pyright: ignore[reportUnknownMemberType,reportAttributeAccessIssue]
215
+ ):
216
+ type_ = "binary"
211
217
elif isinstance (dtype , nw .Object ):
212
218
type_ = "object"
213
219
if series_contains_htmltoolslike (col ):
Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ class FrameDtypeSubset(TypedDict):
184
184
"object" ,
185
185
"unknown" ,
186
186
"html" ,
187
+ "binary" ,
187
188
]
188
189
189
190
You can’t perform that action at this time.
0 commit comments