@@ -265,7 +265,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
265
265
dtype : Dtype = ...,
266
266
name : Hashable = ...,
267
267
copy : bool = ...,
268
- ) -> UnknownSeries : ...
268
+ ) -> Series : ...
269
269
@overload
270
270
def __new__ (
271
271
cls ,
@@ -419,7 +419,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
419
419
dtype : Dtype = ...,
420
420
name : Hashable = ...,
421
421
copy : bool = ...,
422
- ) -> UnknownSeries : ...
422
+ ) -> Series : ...
423
423
@property
424
424
def hasnans (self ) -> bool : ...
425
425
def div (
@@ -732,7 +732,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
732
732
@overload
733
733
def groupby (
734
734
self ,
735
- by : CategoricalIndex | UnknownIndex | UnknownSeries ,
735
+ by : CategoricalIndex | UnknownIndex | Series ,
736
736
axis : AxisIndex = ...,
737
737
level : IndexLabel | None = ...,
738
738
as_index : _bool = ...,
@@ -815,15 +815,15 @@ class Series(IndexOpsMixin[S1], NDFrame):
815
815
self , other : ArrayLike | dict [_str , np .ndarray ] | Sequence [S1 ] | Index [S1 ]
816
816
) -> np .ndarray : ...
817
817
@overload
818
- def __matmul__ (self , other : UnknownSeries ) -> Scalar : ...
818
+ def __matmul__ (self , other : Series ) -> Scalar : ...
819
819
@overload
820
- def __matmul__ (self , other : DataFrame ) -> UnknownSeries : ...
820
+ def __matmul__ (self , other : DataFrame ) -> Series : ...
821
821
@overload
822
822
def __matmul__ (self , other : np .ndarray ) -> np .ndarray : ...
823
823
@overload
824
- def __rmatmul__ (self , other : UnknownSeries ) -> Scalar : ...
824
+ def __rmatmul__ (self , other : Series ) -> Scalar : ...
825
825
@overload
826
- def __rmatmul__ (self , other : DataFrame ) -> UnknownSeries : ...
826
+ def __rmatmul__ (self , other : DataFrame ) -> Series : ...
827
827
@overload
828
828
def __rmatmul__ (self , other : np .ndarray ) -> np .ndarray : ...
829
829
@overload
@@ -843,16 +843,16 @@ class Series(IndexOpsMixin[S1], NDFrame):
843
843
@overload
844
844
def compare (
845
845
self ,
846
- other : UnknownSeries ,
846
+ other : Series ,
847
847
align_axis : AxisIndex ,
848
848
keep_shape : bool = ...,
849
849
keep_equal : bool = ...,
850
850
result_names : Suffixes = ...,
851
- ) -> UnknownSeries : ...
851
+ ) -> Series : ...
852
852
@overload
853
853
def compare (
854
854
self ,
855
- other : UnknownSeries ,
855
+ other : Series ,
856
856
align_axis : AxisColumn = ...,
857
857
keep_shape : bool = ...,
858
858
keep_equal : bool = ...,
@@ -952,9 +952,9 @@ class Series(IndexOpsMixin[S1], NDFrame):
952
952
@overload
953
953
def map (
954
954
self ,
955
- arg : Callable [[Any ], Any ] | Mapping [Any , Any ] | UnknownSeries ,
955
+ arg : Callable [[Any ], Any ] | Mapping [Any , Any ] | Series ,
956
956
na_action : Literal ["ignore" ] | None = ...,
957
- ) -> UnknownSeries : ...
957
+ ) -> Series : ...
958
958
@overload
959
959
def aggregate (
960
960
self : Series [int ],
@@ -978,7 +978,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
978
978
axis : AxisIndex = ...,
979
979
* args : Any ,
980
980
** kwargs : Any ,
981
- ) -> UnknownSeries : ...
981
+ ) -> Series : ...
982
982
agg = aggregate
983
983
@overload
984
984
def transform (
@@ -1005,7 +1005,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1005
1005
convertDType : _bool = ...,
1006
1006
args : tuple = ...,
1007
1007
** kwargs : Any ,
1008
- ) -> UnknownSeries : ...
1008
+ ) -> Series : ...
1009
1009
@overload
1010
1010
def apply (
1011
1011
self ,
@@ -1017,20 +1017,20 @@ class Series(IndexOpsMixin[S1], NDFrame):
1017
1017
@overload
1018
1018
def apply (
1019
1019
self ,
1020
- func : Callable [..., UnknownSeries ],
1020
+ func : Callable [..., Series ],
1021
1021
convertDType : _bool = ...,
1022
1022
args : tuple = ...,
1023
1023
** kwargs : Any ,
1024
1024
) -> DataFrame : ...
1025
1025
def align (
1026
1026
self ,
1027
- other : DataFrame | UnknownSeries ,
1027
+ other : DataFrame | Series ,
1028
1028
join : JoinHow = ...,
1029
1029
axis : Axis | None = ...,
1030
1030
level : Level | None = ...,
1031
1031
copy : _bool = ...,
1032
1032
fill_value : Scalar | NAType | None = ...,
1033
- ) -> tuple [UnknownSeries , UnknownSeries ]: ...
1033
+ ) -> tuple [Series , Series ]: ...
1034
1034
@overload
1035
1035
def rename (
1036
1036
self ,
@@ -1125,7 +1125,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1125
1125
freq : DateOffset | timedelta | _str | None = ...,
1126
1126
axis : Axis = ...,
1127
1127
fill_value : Scalar | NAType | None = ...,
1128
- ) -> UnknownSeries : ...
1128
+ ) -> Series : ...
1129
1129
def info (
1130
1130
self ,
1131
1131
verbose : bool | None = ...,
@@ -1508,15 +1508,11 @@ class Series(IndexOpsMixin[S1], NDFrame):
1508
1508
tuple [
1509
1509
Sequence [bool ]
1510
1510
| Series [bool ]
1511
- | Callable [
1512
- [UnknownSeries ], UnknownSeries | np .ndarray | Sequence [bool ]
1513
- ],
1514
- ListLikeU
1515
- | Scalar
1516
- | Callable [[UnknownSeries ], UnknownSeries | np .ndarray ],
1511
+ | Callable [[Series ], Series | np .ndarray | Sequence [bool ]],
1512
+ ListLikeU | Scalar | Callable [[Series ], Series | np .ndarray ],
1517
1513
],
1518
1514
],
1519
- ) -> UnknownSeries : ...
1515
+ ) -> Series : ...
1520
1516
def truncate (
1521
1517
self ,
1522
1518
before : date | _str | int | None = ...,
@@ -1587,16 +1583,8 @@ class Series(IndexOpsMixin[S1], NDFrame):
1587
1583
@overload
1588
1584
def __add__ (
1589
1585
self ,
1590
- other : (
1591
- num
1592
- | _str
1593
- | timedelta
1594
- | Timedelta
1595
- | _ListLike
1596
- | UnknownSeries
1597
- | np .timedelta64
1598
- ),
1599
- ) -> UnknownSeries : ...
1586
+ other : num | _str | timedelta | Timedelta | _ListLike | Series | np .timedelta64 ,
1587
+ ) -> Series : ...
1600
1588
# ignore needed for mypy as we want different results based on the arguments
1601
1589
@overload # type: ignore[override]
1602
1590
def __and__ ( # pyright: ignore[reportOverlappingOverload]
@@ -1625,7 +1613,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1625
1613
self , other : timedelta | Timedelta | TimedeltaSeries | np .timedelta64
1626
1614
) -> TimedeltaSeries : ...
1627
1615
@overload
1628
- def __mul__ (self , other : num | _ListLike | UnknownSeries ) -> UnknownSeries : ...
1616
+ def __mul__ (self , other : num | _ListLike | Series ) -> Series : ...
1629
1617
def __mod__ (self , other : num | _ListLike | Series [S1 ]) -> Series [S1 ]: ...
1630
1618
def __ne__ (self , other : object ) -> Series [_bool ]: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
1631
1619
def __pow__ (self , other : num | _ListLike | Series [S1 ]) -> Series [S1 ]: ...
@@ -1639,9 +1627,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1639
1627
@overload
1640
1628
def __radd__ (self , other : S1 | Series [S1 ]) -> Self : ...
1641
1629
@overload
1642
- def __radd__ (
1643
- self , other : num | _str | _ListLike | UnknownSeries
1644
- ) -> UnknownSeries : ...
1630
+ def __radd__ (self , other : num | _str | _ListLike | Series ) -> Series : ...
1645
1631
# ignore needed for mypy as we want different results based on the arguments
1646
1632
@overload # type: ignore[override]
1647
1633
def __rand__ ( # pyright: ignore[reportOverlappingOverload]
@@ -1658,7 +1644,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1658
1644
self , other : timedelta | Timedelta | TimedeltaSeries | np .timedelta64
1659
1645
) -> TimedeltaSeries : ...
1660
1646
@overload
1661
- def __rmul__ (self , other : num | _ListLike | UnknownSeries ) -> UnknownSeries : ...
1647
+ def __rmul__ (self , other : num | _ListLike | Series ) -> Series : ...
1662
1648
def __rnatmul__ (self , other : num | _ListLike | Series [S1 ]) -> Series [S1 ]: ...
1663
1649
def __rpow__ (self , other : num | _ListLike | Series [S1 ]) -> Series [S1 ]: ...
1664
1650
# ignore needed for mypy as we want different results based on the arguments
@@ -1668,10 +1654,8 @@ class Series(IndexOpsMixin[S1], NDFrame):
1668
1654
) -> Series [bool ]: ...
1669
1655
@overload
1670
1656
def __ror__ (self , other : int | np_ndarray_anyint | Series [int ]) -> Series [int ]: ...
1671
- def __rsub__ (self , other : num | _ListLike | Series [S1 ]) -> UnknownSeries : ...
1672
- def __rtruediv__ (
1673
- self , other : num | _ListLike | Series [S1 ] | Path
1674
- ) -> UnknownSeries : ...
1657
+ def __rsub__ (self , other : num | _ListLike | Series [S1 ]) -> Series : ...
1658
+ def __rtruediv__ (self , other : num | _ListLike | Series [S1 ] | Path ) -> Series : ...
1675
1659
# ignore needed for mypy as we want different results based on the arguments
1676
1660
@overload # type: ignore[override]
1677
1661
def __rxor__ ( # pyright: ignore[reportOverlappingOverload]
@@ -1694,10 +1678,8 @@ class Series(IndexOpsMixin[S1], NDFrame):
1694
1678
self , other : Timestamp | datetime | TimestampSeries
1695
1679
) -> TimedeltaSeries : ...
1696
1680
@overload
1697
- def __sub__ (self , other : num | _ListLike | UnknownSeries ) -> UnknownSeries : ...
1698
- def __truediv__ (
1699
- self , other : num | _ListLike | Series [S1 ] | Path
1700
- ) -> UnknownSeries : ...
1681
+ def __sub__ (self , other : num | _ListLike | Series ) -> Series : ...
1682
+ def __truediv__ (self , other : num | _ListLike | Series [S1 ] | Path ) -> Series : ...
1701
1683
# ignore needed for mypy as we want different results based on the arguments
1702
1684
@overload # type: ignore[override]
1703
1685
def __xor__ ( # pyright: ignore[reportOverlappingOverload]
@@ -1800,12 +1782,12 @@ class Series(IndexOpsMixin[S1], NDFrame):
1800
1782
min_periods : int = ...,
1801
1783
adjust : _bool = ...,
1802
1784
ignore_na : _bool = ...,
1803
- ) -> ExponentialMovingWindow [UnknownSeries ]: ...
1785
+ ) -> ExponentialMovingWindow [Series ]: ...
1804
1786
def expanding (
1805
1787
self ,
1806
1788
min_periods : int = ...,
1807
1789
method : CalculationMethod = ...,
1808
- ) -> Expanding [UnknownSeries ]: ...
1790
+ ) -> Expanding [Series ]: ...
1809
1791
def floordiv (
1810
1792
self ,
1811
1793
other : num | _ListLike | Series [S1 ],
@@ -1908,11 +1890,11 @@ class Series(IndexOpsMixin[S1], NDFrame):
1908
1890
@overload
1909
1891
def mul (
1910
1892
self ,
1911
- other : num | _ListLike | UnknownSeries ,
1893
+ other : num | _ListLike | Series ,
1912
1894
level : Level | None = ...,
1913
1895
fill_value : float | None = ...,
1914
1896
axis : AxisIndex | None = ...,
1915
- ) -> UnknownSeries : ...
1897
+ ) -> Series : ...
1916
1898
def multiply (
1917
1899
self ,
1918
1900
other : num | _ListLike | Series [S1 ],
@@ -1992,11 +1974,11 @@ class Series(IndexOpsMixin[S1], NDFrame):
1992
1974
@overload
1993
1975
def rmul (
1994
1976
self ,
1995
- other : num | _ListLike | UnknownSeries ,
1977
+ other : num | _ListLike | Series ,
1996
1978
level : Level | None = ...,
1997
1979
fill_value : float | None = ...,
1998
1980
axis : AxisIndex = ...,
1999
- ) -> UnknownSeries : ...
1981
+ ) -> Series : ...
2000
1982
@overload
2001
1983
def rolling (
2002
1984
self ,
@@ -2009,7 +1991,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
2009
1991
method : CalculationMethod = ...,
2010
1992
* ,
2011
1993
win_type : _str ,
2012
- ) -> Window [UnknownSeries ]: ...
1994
+ ) -> Window [Series ]: ...
2013
1995
@overload
2014
1996
def rolling (
2015
1997
self ,
@@ -2022,7 +2004,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
2022
2004
method : CalculationMethod = ...,
2023
2005
* ,
2024
2006
win_type : None = ...,
2025
- ) -> Rolling [UnknownSeries ]: ...
2007
+ ) -> Rolling [Series ]: ...
2026
2008
def rpow (
2027
2009
self ,
2028
2010
other : Series [S1 ] | Scalar ,
@@ -2353,5 +2335,3 @@ class IntervalSeries(Series[Interval[_OrderableT]], Generic[_OrderableT]):
2353
2335
@property
2354
2336
def array (self ) -> IntervalArray : ...
2355
2337
def diff (self , periods : int = ...) -> Never : ...
2356
-
2357
- UnknownSeries : TypeAlias = Series [Any ]
0 commit comments