@@ -140,9 +140,7 @@ def _safe_cast(cls, values: np.ndarray, dtype: np.dtype, copy: bool) -> np.ndarr
140140 raise AbstractMethodError (cls )
141141
142142
143- def _coerce_to_data_and_mask (
144- values , dtype , copy : bool , dtype_cls : type [NumericDtype ], default_dtype : np .dtype
145- ):
143+ def _coerce_to_data_and_mask (values , dtype , copy : bool , dtype_cls : type [NumericDtype ]):
146144 values = extract_array (values , extract_numpy = True )
147145 checker = dtype_cls ._checker
148146 default_dtype = dtype_cls ._default_np_dtype
@@ -300,10 +298,7 @@ def _coerce_to_array(
300298 cls , value , dtype : DtypeObj , copy : bool = False
301299 ) -> tuple [np .ndarray , np .ndarray ]:
302300 dtype_cls = cls ._dtype_cls
303- default_dtype = dtype_cls ._default_np_dtype
304- values , mask = _coerce_to_data_and_mask (
305- value , dtype , copy , dtype_cls , default_dtype
306- )
301+ values , mask = _coerce_to_data_and_mask (value , dtype , copy , dtype_cls )
307302 return values , mask
308303
309304 @classmethod
0 commit comments