Skip to content

Commit 43faa08

Browse files
1 parent af700c5 commit 43faa08

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

db_dtypes/json.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ def __init__(self, values) -> None:
8181
pa_data = values
8282
else:
8383
raise ValueError(f"Unsupported type '{type(values)}' for JSONArray")
84-
84+
8585
# Ensures compatibility with pandas version 1.5.3
86-
if hasattr(self, '_data'):
86+
if hasattr(self, "_data"):
8787
self._data = pa_data
88-
elif hasattr(self, '_pa_array'):
88+
elif hasattr(self, "_pa_array"):
8989
self._pa_array = pa_data
9090
else:
9191
raise ValueError(f"Unsupported pandas version: {pd.__version__}")
@@ -160,9 +160,9 @@ def dtype(self) -> JSONDtype:
160160
def pa_data(self):
161161
"""An instance of stored pa data"""
162162
# Ensures compatibility with pandas version 1.5.3
163-
if hasattr(self, '_data'):
163+
if hasattr(self, "_data"):
164164
return self._data
165-
elif hasattr(self, '_pa_array'):
165+
elif hasattr(self, "_pa_array"):
166166
return self._pa_array
167167

168168
def _cmp_method(self, other, op):

0 commit comments

Comments
 (0)