Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Oct 5, 2022
1 parent 183ad5a commit fc9fe5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apis/python/src/tiledbsoma/util_arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,11 @@ def get_arrow_type_from_tiledb_dtype(tiledb_dtype: Union[str, np.dtype]) -> pa.D
"""
TODO: COMMENT
"""
if tiledb_dtype == "ascii" or tiledb_dtype.name == "bytes":
if isinstance(tiledb_dtype, str) and tiledb_dtype == "ascii":
# XXX TODO: temporary work-around until UTF8 support is native. GH #338.
return pa.large_string()
elif tiledb_dtype.name == "bytes":
return pa.large_binary()
else:
return pa.from_numpy_dtype(tiledb_dtype)

Expand Down

0 comments on commit fc9fe5f

Please sign in to comment.