File tree Expand file tree Collapse file tree 1 file changed +9
-16
lines changed Expand file tree Collapse file tree 1 file changed +9
-16
lines changed Original file line number Diff line number Diff line change @@ -362,6 +362,15 @@ class Series(IndexOpsMixin[S1], NDFrame):
362
362
copy : bool = ...,
363
363
) -> Series [Period ]: ...
364
364
@overload
365
+ def __new__ (
366
+ cls ,
367
+ data : Sequence [BaseOffset ],
368
+ index : AxesData | None = ...,
369
+ dtype : PeriodDtype = ...,
370
+ name : Hashable = ...,
371
+ copy : bool = ...,
372
+ ) -> Series [BaseOffset ]: ...
373
+ @overload
365
374
def __new__ (
366
375
cls ,
367
376
data : (
@@ -4689,22 +4698,6 @@ class Series(IndexOpsMixin[S1], NDFrame):
4689
4698
** kwargs ,
4690
4699
) -> np_1darray [np .bytes_ ]: ...
4691
4700
@overload
4692
- def to_numpy (
4693
- self : Series [DateOffset ],
4694
- dtype : None = None ,
4695
- copy : bool = False ,
4696
- na_value : Scalar = ...,
4697
- ** kwargs ,
4698
- ) -> np_1darray [np .object_ ]: ...
4699
- @overload
4700
- def to_numpy (
4701
- self : Series [DateOffset ],
4702
- dtype : type [np .bytes_ ],
4703
- copy : bool = False ,
4704
- na_value : Scalar = ...,
4705
- ** kwargs ,
4706
- ) -> np_1darray [np .bytes_ ]: ...
4707
- @overload
4708
4701
def to_numpy ( # pyright: ignore[reportIncompatibleMethodOverride]
4709
4702
self ,
4710
4703
dtype : DTypeLike | None = None ,
You can’t perform that action at this time.
0 commit comments