We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Binary
serialize_dtype
1 parent da5fed7 commit 98858fdCopy full SHA for 98858fd
shiny/render/_data_frame_utils/_tbl_data.py
@@ -208,6 +208,12 @@ def serialize_dtype(col: nw.Series) -> FrameDtype:
208
nw.Time, # pyright: ignore[reportUnknownMemberType,reportAttributeAccessIssue]
209
):
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"
217
elif isinstance(dtype, nw.Object):
218
type_ = "object"
219
if series_contains_htmltoolslike(col):
shiny/render/_data_frame_utils/_types.py
@@ -184,6 +184,7 @@ class FrameDtypeSubset(TypedDict):
184
"object",
185
"unknown",
186
"html",
187
+ "binary",
188
]
189
190
0 commit comments