File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -80,12 +80,14 @@ def __init__(self, values) -> None:
8080 elif isinstance (values , pa .ChunkedArray ):
8181 pa_data = values
8282 else :
83- raise NotImplementedError (f"Unsupported type '{ type (values )} ' for JSONArray" )
84-
83+ raise NotImplementedError (
84+ f"Unsupported type '{ type (values )} ' for JSONArray"
85+ )
86+
8587 # Ensures compatibility with pandas version 1.5.3
86- if hasattr (self , ' _data' ):
88+ if hasattr (self , " _data" ):
8789 self ._data = pa_data
88- elif hasattr (self , ' _pa_array' ):
90+ elif hasattr (self , " _pa_array" ):
8991 self ._pa_array = pa_data
9092 else :
9193 raise NotImplementedError (f"Unsupported pandas version: { pd .__version__ } " )
@@ -160,9 +162,9 @@ def dtype(self) -> JSONDtype:
160162 def pa_data (self ):
161163 """An instance of stored pa data"""
162164 # Ensures compatibility with pandas version 1.5.3
163- if hasattr (self , ' _data' ):
165+ if hasattr (self , " _data" ):
164166 return self ._data
165- elif hasattr (self , ' _pa_array' ):
167+ elif hasattr (self , " _pa_array" ):
166168 return self ._pa_array
167169 else :
168170 raise NotImplementedError (f"Unsupported pandas version: { pd .__version__ } " )
You can’t perform that action at this time.
0 commit comments