From fc9fe5fe82bc2beb42638330723bccf77eb6678d Mon Sep 17 00:00:00 2001 From: John Kerl Date: Wed, 5 Oct 2022 00:47:50 -0400 Subject: [PATCH] fix lint --- apis/python/src/tiledbsoma/util_arrow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apis/python/src/tiledbsoma/util_arrow.py b/apis/python/src/tiledbsoma/util_arrow.py index d48420de6e..643c947b9d 100644 --- a/apis/python/src/tiledbsoma/util_arrow.py +++ b/apis/python/src/tiledbsoma/util_arrow.py @@ -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)