Skip to content

Commit fc9fe5f

Browse files
committed
fix lint
1 parent 183ad5a commit fc9fe5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apis/python/src/tiledbsoma/util_arrow.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,11 @@ def get_arrow_type_from_tiledb_dtype(tiledb_dtype: Union[str, np.dtype]) -> pa.D
9090
"""
9191
TODO: COMMENT
9292
"""
93-
if tiledb_dtype == "ascii" or tiledb_dtype.name == "bytes":
93+
if isinstance(tiledb_dtype, str) and tiledb_dtype == "ascii":
9494
# XXX TODO: temporary work-around until UTF8 support is native. GH #338.
9595
return pa.large_string()
96+
elif tiledb_dtype.name == "bytes":
97+
return pa.large_binary()
9698
else:
9799
return pa.from_numpy_dtype(tiledb_dtype)
98100

0 commit comments

Comments
 (0)