Skip to content

Commit efe72cc

Browse files
committed
skip jsondtype and jsonarray
1 parent 2798825 commit efe72cc

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

db_dtypes/__init__.py

+18-10
Original file line numberDiff line numberDiff line change
@@ -343,13 +343,21 @@ def __sub__(self, other):
343343

344344
return super().__sub__(other)
345345

346-
347-
__all__ = [
348-
"__version__",
349-
"DateArray",
350-
"DateDtype",
351-
"JSONDtype",
352-
"JSONArray",
353-
"TimeArray",
354-
"TimeDtype",
355-
]
346+
if not JSONArray or not JSONDtype:
347+
__all__ = [
348+
"__version__",
349+
"DateArray",
350+
"DateDtype",
351+
"TimeArray",
352+
"TimeDtype",
353+
]
354+
else:
355+
__all__ = [
356+
"__version__",
357+
"DateArray",
358+
"DateDtype",
359+
"JSONDtype",
360+
"JSONArray",
361+
"TimeArray",
362+
"TimeDtype",
363+
]

0 commit comments

Comments
 (0)