@@ -272,7 +272,9 @@ class chararray(np.ndarray[_ShapeT_co, _DTypeT_co]):
272
272
@overload
273
273
def endswith (self : _StrArray , / , suffix : _ToStrND , start : _ToIntND = 0 , end : _ToIntND | None = None ) -> _BoolND : ...
274
274
@overload
275
- def endswith (self : _BytesArray , / , suffix : _ToBytesND , start : _ToIntND = 0 , end : _ToIntND | None = None ) -> _BoolND : ...
275
+ def endswith (
276
+ self : _BytesArray , / , suffix : _ToBytesND , start : _ToIntND = 0 , end : _ToIntND | None = None
277
+ ) -> _BoolND : ...
276
278
277
279
#
278
280
@overload
@@ -320,7 +322,9 @@ class chararray(np.ndarray[_ShapeT_co, _DTypeT_co]):
320
322
@overload
321
323
def replace (self : _StrArray , / , old : _ToStrND , new : _ToStrND , count : _ToIntND | None = None ) -> _StrArray : ...
322
324
@overload
323
- def replace (self : _BytesArray , / , old : _ToBytesND , new : _ToBytesND , count : _ToIntND | None = None ) -> _BytesArray : ...
325
+ def replace (
326
+ self : _BytesArray , / , old : _ToBytesND , new : _ToBytesND , count : _ToIntND | None = None
327
+ ) -> _BytesArray : ...
324
328
325
329
#
326
330
@overload
@@ -369,9 +373,13 @@ class chararray(np.ndarray[_ShapeT_co, _DTypeT_co]):
369
373
370
374
#
371
375
@overload
372
- def startswith (self : _StrArray , / , prefix : _ToStrND , start : _ToIntND = 0 , end : _ToIntND | None = None ) -> _BoolND : ...
376
+ def startswith (
377
+ self : _StrArray , / , prefix : _ToStrND , start : _ToIntND = 0 , end : _ToIntND | None = None
378
+ ) -> _BoolND : ...
373
379
@overload
374
- def startswith (self : _BytesArray , / , prefix : _ToBytesND , start : _ToIntND = 0 , end : _ToIntND | None = None ) -> _BoolND : ...
380
+ def startswith (
381
+ self : _BytesArray , / , prefix : _ToBytesND , start : _ToIntND = 0 , end : _ToIntND | None = None
382
+ ) -> _BoolND : ...
375
383
376
384
#
377
385
@overload
@@ -497,8 +505,14 @@ def asarray( # type: ignore[overload-overlap]
497
505
order : _Order | None = None ,
498
506
) -> _BytesArray : ...
499
507
@overload # unicode=False
500
- def asarray (obj : object , itemsize : int | None = None , * , unicode : L [False ], order : _Order | None = None ) -> _BytesArray : ...
508
+ def asarray (
509
+ obj : object , itemsize : int | None = None , * , unicode : L [False ], order : _Order | None = None
510
+ ) -> _BytesArray : ...
501
511
@overload # unicode=True
502
- def asarray (obj : object , itemsize : int | None = None , * , unicode : L [True ], order : _Order | None = None ) -> _StrArray : ...
512
+ def asarray (
513
+ obj : object , itemsize : int | None = None , * , unicode : L [True ], order : _Order | None = None
514
+ ) -> _StrArray : ...
503
515
@overload # falback
504
- def asarray (obj : object , itemsize : int | None = None , unicode : bool | None = None , order : _Order | None = None ) -> _CharArray : ...
516
+ def asarray (
517
+ obj : object , itemsize : int | None = None , unicode : bool | None = None , order : _Order | None = None
518
+ ) -> _CharArray : ...
0 commit comments