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:
208208 nw .Time , # pyright: ignore[reportUnknownMemberType,reportAttributeAccessIssue]
209209 ):
210210 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"
211217 elif isinstance (dtype , nw .Object ):
212218 type_ = "object"
213219 if series_contains_htmltoolslike (col ):
Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ class FrameDtypeSubset(TypedDict):
184184 "object" ,
185185 "unknown" ,
186186 "html" ,
187+ "binary" ,
187188 ]
188189
189190
You can’t perform that action at this time.
0 commit comments