Skip to content

Commit 2a60d1e

Browse files
committed
fix lint
1 parent b7baf41 commit 2a60d1e

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
@@ -88,9 +88,11 @@ def get_arrow_type_from_tiledb_dtype(tiledb_dtype: Union[str, np.dtype]) -> pa.D
8888
"""
8989
TODO: COMMENT
9090
"""
91-
if tiledb_dtype == "ascii" or tiledb_dtype.name == "bytes":
91+
if isinstance(tiledb_dtype, str) and tiledb_dtype == "ascii":
9292
# XXX TODO: temporary work-around until UTF8 support is native. GH #338.
9393
return pa.string()
94+
elif tiledb_dtype.name == "bytes":
95+
return pa.string()
9496
else:
9597
return pa.from_numpy_dtype(tiledb_dtype)
9698

0 commit comments

Comments
 (0)