Skip to content

Commit a7d8445

Browse files
GH1379 PR feedback
1 parent 5597cca commit a7d8445

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

pandas-stubs/core/series.pyi

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,15 @@ class Series(IndexOpsMixin[S1], NDFrame):
362362
copy: bool = ...,
363363
) -> Series[Period]: ...
364364
@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
365374
def __new__(
366375
cls,
367376
data: (
@@ -4689,22 +4698,6 @@ class Series(IndexOpsMixin[S1], NDFrame):
46894698
**kwargs,
46904699
) -> np_1darray[np.bytes_]: ...
46914700
@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
47084701
def to_numpy( # pyright: ignore[reportIncompatibleMethodOverride]
47094702
self,
47104703
dtype: DTypeLike | None = None,

0 commit comments

Comments
 (0)