@@ -161,7 +161,12 @@ def _dtype_from_pandasdtype(self, dtype) -> tuple[DtypeKind, int, str, str]:
161
161
byteorder = dtype .byteorder
162
162
163
163
if dtype == "bool[pyarrow]" :
164
- return kind , dtype .itemsize , ArrowCTypes .BOOL , byteorder
164
+ return (
165
+ kind ,
166
+ type .itemsize , # type: ignore[attr-defined]
167
+ ArrowCTypes .BOOL ,
168
+ byteorder ,
169
+ )
165
170
166
171
return kind , dtype .itemsize * 8 , dtype_to_arrow_c_fmt (dtype ), byteorder
167
172
@@ -202,7 +207,8 @@ def describe_null(self):
202
207
return column_null_dtype , null_value
203
208
if isinstance (self ._col .dtype , ArrowDtype ):
204
209
if all (
205
- chunk .buffers ()[0 ] is None for chunk in self ._col .array ._pa_array .chunks
210
+ chunk .buffers ()[0 ] is None
211
+ for chunk in self ._col .array ._pa_array .chunks # type: ignore[attr-defined]
206
212
):
207
213
return ColumnNullType .NON_NULLABLE , None
208
214
return ColumnNullType .USE_BITMASK , 0
@@ -317,7 +323,6 @@ def _get_data_buffer(
317
323
dtype = self .dtype
318
324
arr = self ._col .array
319
325
if isinstance (self ._col .dtype , ArrowDtype ):
320
- arr = self ._col .array
321
326
buffer = PandasBufferPyarrow (
322
327
arr ._pa_array , is_validity = False , allow_copy = self ._allow_copy
323
328
)
0 commit comments