@@ -273,15 +273,17 @@ def dtype(self) -> BooleanDtype:
273273 return self ._dtype
274274
275275 @classmethod
276- def _from_sequence (cls , scalars , dtype = None , copy : bool = False ) -> "BooleanArray" :
276+ def _from_sequence (
277+ cls , scalars , * , dtype = None , copy : bool = False
278+ ) -> "BooleanArray" :
277279 if dtype :
278280 assert dtype == "boolean"
279281 values , mask = coerce_to_array (scalars , copy = copy )
280282 return BooleanArray (values , mask )
281283
282284 @classmethod
283285 def _from_sequence_of_strings (
284- cls , strings : List [str ], dtype = None , copy : bool = False
286+ cls , strings : List [str ], * , dtype = None , copy : bool = False
285287 ) -> "BooleanArray" :
286288 def map_string (s ):
287289 if isna (s ):
@@ -294,7 +296,7 @@ def map_string(s):
294296 raise ValueError (f"{ s } cannot be cast to bool" )
295297
296298 scalars = [map_string (x ) for x in strings ]
297- return cls ._from_sequence (scalars , dtype , copy )
299+ return cls ._from_sequence (scalars , dtype = dtype , copy = copy )
298300
299301 _HANDLED_TYPES = (np .ndarray , numbers .Number , bool , np .bool_ )
300302
@@ -682,12 +684,12 @@ def _arith_method(self, other, op):
682684
683685 return self ._maybe_mask_result (result , mask , other , op_name )
684686
685- def _reduce (self , name : str , skipna : bool = True , ** kwargs ):
687+ def _reduce (self , name : str , * , skipna : bool = True , ** kwargs ):
686688
687689 if name in {"any" , "all" }:
688690 return getattr (self , name )(skipna = skipna , ** kwargs )
689691
690- return super ()._reduce (name , skipna , ** kwargs )
692+ return super ()._reduce (name , skipna = skipna , ** kwargs )
691693
692694 def _maybe_mask_result (self , result , mask , other , op_name : str ):
693695 """
0 commit comments