@@ -1631,13 +1631,15 @@ class Series(IndexOpsMixin[S1], NDFrame):
1631
1631
@overload
1632
1632
def __add__ (self : Series [Never ], other : _str ) -> Never : ...
1633
1633
@overload
1634
- def __add__ (self : Series [Never ], other : complex | _ListLike | Series ) -> Series : ...
1634
+ def __add__ (
1635
+ self : Series [Never ], other : complex | _ListLike | Index | Series
1636
+ ) -> Series : ...
1635
1637
@overload
1636
- def __add__ (self , other : Series [Never ]) -> Series : ...
1638
+ def __add__ (self , other : Index [ Never ] | Series [Never ]) -> Series : ...
1637
1639
@overload
1638
1640
def __add__ (
1639
1641
self : Series [bool ],
1640
- other : T_COMPLEX | Sequence [T_COMPLEX ] | Series [T_COMPLEX ],
1642
+ other : T_COMPLEX | Sequence [T_COMPLEX ] | Index [ T_COMPLEX ] | Series [T_COMPLEX ],
1641
1643
) -> Series [T_COMPLEX ]: ...
1642
1644
@overload
1643
1645
def __add__ (self : Series [bool ], other : np_ndarray_bool ) -> Series [bool ]: ...
@@ -1651,13 +1653,18 @@ class Series(IndexOpsMixin[S1], NDFrame):
1651
1653
def __add__ (
1652
1654
self : Series [int ],
1653
1655
other : (
1654
- bool | Sequence [bool ] | np_ndarray_bool | np_ndarray_anyint | Series [bool ]
1656
+ bool
1657
+ | Sequence [bool ]
1658
+ | np_ndarray_bool
1659
+ | np_ndarray_anyint
1660
+ | Index [bool ]
1661
+ | Series [bool ]
1655
1662
),
1656
1663
) -> Series [int ]: ...
1657
1664
@overload
1658
1665
def __add__ (
1659
1666
self : Series [int ],
1660
- other : T_COMPLEX | Sequence [T_COMPLEX ] | Series [T_COMPLEX ],
1667
+ other : T_COMPLEX | Sequence [T_COMPLEX ] | Index [ T_COMPLEX ] | Series [T_COMPLEX ],
1661
1668
) -> Series [T_COMPLEX ]: ...
1662
1669
@overload
1663
1670
def __add__ (self : Series [int ], other : np_ndarray_float ) -> Series [float ]: ...
@@ -1672,13 +1679,14 @@ class Series(IndexOpsMixin[S1], NDFrame):
1672
1679
| np_ndarray_bool
1673
1680
| np_ndarray_anyint
1674
1681
| np_ndarray_float
1682
+ | Index [T_INT ]
1675
1683
| Series [T_INT ]
1676
1684
),
1677
1685
) -> Series [float ]: ...
1678
1686
@overload
1679
1687
def __add__ (
1680
1688
self : Series [float ],
1681
- other : T_COMPLEX | Sequence [T_COMPLEX ] | Series [T_COMPLEX ],
1689
+ other : T_COMPLEX | Sequence [T_COMPLEX ] | Index [ T_COMPLEX ] | Series [T_COMPLEX ],
1682
1690
) -> Series [T_COMPLEX ]: ...
1683
1691
@overload
1684
1692
def __add__ (self : Series [float ], other : np_ndarray_complex ) -> Series [complex ]: ...
@@ -1692,6 +1700,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1692
1700
| np_ndarray_anyint
1693
1701
| np_ndarray_float
1694
1702
| np_ndarray_complex
1703
+ | Index [T_COMPLEX ]
1695
1704
| Series [T_COMPLEX ]
1696
1705
),
1697
1706
) -> Series [complex ]: ...
@@ -1704,7 +1713,8 @@ class Series(IndexOpsMixin[S1], NDFrame):
1704
1713
) -> Never : ...
1705
1714
@overload
1706
1715
def __add__ (
1707
- self : Series [_str ], other : _str | Sequence [_str ] | np_ndarray_str | Series [_str ]
1716
+ self : Series [_str ],
1717
+ other : _str | Sequence [_str ] | np_ndarray_str | Index [_str ] | Series [_str ],
1708
1718
) -> Series [_str ]: ...
1709
1719
@overload
1710
1720
def add (
@@ -1717,7 +1727,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1717
1727
@overload
1718
1728
def add (
1719
1729
self : Series [Never ],
1720
- other : complex | _ListLike | Series ,
1730
+ other : complex | _ListLike | Index | Series ,
1721
1731
level : Level | None = None ,
1722
1732
fill_value : float | None = None ,
1723
1733
axis : int = 0 ,
@@ -1733,7 +1743,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1733
1743
@overload
1734
1744
def add (
1735
1745
self : Series [bool ],
1736
- other : T_COMPLEX | Sequence [T_COMPLEX ] | Series [T_COMPLEX ],
1746
+ other : T_COMPLEX | Sequence [T_COMPLEX ] | Index [ T_COMPLEX ] | Series [T_COMPLEX ],
1737
1747
level : Level | None = None ,
1738
1748
fill_value : float | None = None ,
1739
1749
axis : int = 0 ,
@@ -1774,7 +1784,12 @@ class Series(IndexOpsMixin[S1], NDFrame):
1774
1784
def add (
1775
1785
self : Series [int ],
1776
1786
other : (
1777
- bool | Sequence [bool ] | np_ndarray_bool | np_ndarray_anyint | Series [bool ]
1787
+ bool
1788
+ | Sequence [bool ]
1789
+ | np_ndarray_bool
1790
+ | np_ndarray_anyint
1791
+ | Index [bool ]
1792
+ | Series [bool ]
1778
1793
),
1779
1794
level : Level | None = None ,
1780
1795
fill_value : float | None = None ,
@@ -1783,7 +1798,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1783
1798
@overload
1784
1799
def add (
1785
1800
self : Series [int ],
1786
- other : T_COMPLEX | Sequence [T_COMPLEX ] | Series [T_COMPLEX ],
1801
+ other : T_COMPLEX | Sequence [T_COMPLEX ] | Index [ T_COMPLEX ] | Series [T_COMPLEX ],
1787
1802
level : Level | None = None ,
1788
1803
fill_value : float | None = None ,
1789
1804
axis : int = 0 ,
@@ -1813,6 +1828,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1813
1828
| np_ndarray_bool
1814
1829
| np_ndarray_anyint
1815
1830
| np_ndarray_float
1831
+ | Index [T_INT ]
1816
1832
| Series [T_INT ]
1817
1833
),
1818
1834
level : Level | None = None ,
@@ -1822,7 +1838,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1822
1838
@overload
1823
1839
def add (
1824
1840
self : Series [float ],
1825
- other : T_COMPLEX | Sequence [T_COMPLEX ] | Series [T_COMPLEX ],
1841
+ other : T_COMPLEX | Sequence [T_COMPLEX ] | Index [ T_COMPLEX ] | Series [T_COMPLEX ],
1826
1842
level : Level | None = None ,
1827
1843
fill_value : float | None = None ,
1828
1844
axis : int = 0 ,
@@ -1845,6 +1861,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1845
1861
| np_ndarray_anyint
1846
1862
| np_ndarray_float
1847
1863
| np_ndarray_complex
1864
+ | Index [T_COMPLEX ]
1848
1865
| Series [T_COMPLEX ]
1849
1866
),
1850
1867
level : Level | None = None ,
@@ -1854,7 +1871,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1854
1871
@overload
1855
1872
def add (
1856
1873
self : Series [_str ],
1857
- other : _str | Sequence [_str ] | np_ndarray_str | Series [_str ],
1874
+ other : _str | Sequence [_str ] | np_ndarray_str | Index [ _str ] | Series [_str ],
1858
1875
level : Level | None = None ,
1859
1876
fill_value : float | None = None ,
1860
1877
axis : int = 0 ,
@@ -1863,12 +1880,12 @@ class Series(IndexOpsMixin[S1], NDFrame):
1863
1880
def __radd__ (self : Series [Never ], other : _str ) -> Never : ...
1864
1881
@overload
1865
1882
def __radd__ (
1866
- self : Series [Never ], other : complex | _ListLike | Series
1883
+ self : Series [Never ], other : complex | _ListLike | Index | Series
1867
1884
) -> Series : ...
1868
1885
@overload
1869
1886
def __radd__ (
1870
1887
self : Series [bool ],
1871
- other : T_COMPLEX | Sequence [T_COMPLEX ] | Series [T_COMPLEX ],
1888
+ other : T_COMPLEX | Sequence [T_COMPLEX ] | Index [ T_COMPLEX ] | Series [T_COMPLEX ],
1872
1889
) -> Series [T_COMPLEX ]: ...
1873
1890
@overload
1874
1891
def __radd__ (self : Series [bool ], other : np_ndarray_bool ) -> Series [bool ]: ...
@@ -1880,12 +1897,18 @@ class Series(IndexOpsMixin[S1], NDFrame):
1880
1897
def __radd__ (
1881
1898
self : Series [int ],
1882
1899
other : (
1883
- bool | Sequence [bool ] | np_ndarray_bool | np_ndarray_anyint | Series [bool ]
1900
+ bool
1901
+ | Sequence [bool ]
1902
+ | np_ndarray_bool
1903
+ | np_ndarray_anyint
1904
+ | Index [bool ]
1905
+ | Series [bool ]
1884
1906
),
1885
1907
) -> Series [int ]: ...
1886
1908
@overload
1887
1909
def __radd__ (
1888
- self : Series [int ], other : T_COMPLEX | Sequence [T_COMPLEX ] | Series [T_COMPLEX ]
1910
+ self : Series [int ],
1911
+ other : T_COMPLEX | Sequence [T_COMPLEX ] | Index [T_COMPLEX ] | Series [T_COMPLEX ],
1889
1912
) -> Series [T_COMPLEX ]: ...
1890
1913
@overload
1891
1914
def __radd__ (self : Series [int ], other : np_ndarray_float ) -> Series [float ]: ...
@@ -1898,13 +1921,14 @@ class Series(IndexOpsMixin[S1], NDFrame):
1898
1921
| np_ndarray_bool
1899
1922
| np_ndarray_anyint
1900
1923
| np_ndarray_float
1924
+ | Index [T_INT ]
1901
1925
| Series [T_INT ]
1902
1926
),
1903
1927
) -> Series [float ]: ...
1904
1928
@overload
1905
1929
def __radd__ (
1906
1930
self : Series [float ],
1907
- other : T_COMPLEX | Sequence [T_COMPLEX ] | Series [T_COMPLEX ],
1931
+ other : T_COMPLEX | Sequence [T_COMPLEX ] | Index [ T_COMPLEX ] | Series [T_COMPLEX ],
1908
1932
) -> Series [T_COMPLEX ]: ...
1909
1933
@overload
1910
1934
def __radd__ (
@@ -1915,6 +1939,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1915
1939
| np_ndarray_bool
1916
1940
| np_ndarray_anyint
1917
1941
| np_ndarray_float
1942
+ | Index [T_COMPLEX ]
1918
1943
| Series [T_COMPLEX ]
1919
1944
),
1920
1945
) -> Series [complex ]: ...
@@ -1931,7 +1956,8 @@ class Series(IndexOpsMixin[S1], NDFrame):
1931
1956
) -> Never : ...
1932
1957
@overload
1933
1958
def __radd__ (
1934
- self : Series [_str ], other : _str | Sequence [_str ] | np_ndarray_str | Series [_str ]
1959
+ self : Series [_str ],
1960
+ other : _str | Sequence [_str ] | np_ndarray_str | Index [_str ] | Series [_str ],
1935
1961
) -> Series [_str ]: ...
1936
1962
@overload
1937
1963
def radd (
@@ -1944,7 +1970,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1944
1970
@overload
1945
1971
def radd (
1946
1972
self : Series [Never ],
1947
- other : complex | _ListLike | Series ,
1973
+ other : complex | _ListLike | Index | Series ,
1948
1974
level : Level | None = None ,
1949
1975
fill_value : float | None = None ,
1950
1976
axis : int = 0 ,
@@ -1960,7 +1986,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1960
1986
@overload
1961
1987
def radd (
1962
1988
self : Series [bool ],
1963
- other : T_COMPLEX | Sequence [T_COMPLEX ] | Series [T_COMPLEX ],
1989
+ other : T_COMPLEX | Sequence [T_COMPLEX ] | Index [ T_COMPLEX ] | Series [T_COMPLEX ],
1964
1990
level : Level | None = None ,
1965
1991
fill_value : float | None = None ,
1966
1992
axis : int = 0 ,
@@ -1993,7 +2019,12 @@ class Series(IndexOpsMixin[S1], NDFrame):
1993
2019
def radd (
1994
2020
self : Series [int ],
1995
2021
other : (
1996
- bool | Sequence [bool ] | np_ndarray_bool | np_ndarray_anyint | Series [bool ]
2022
+ bool
2023
+ | Sequence [bool ]
2024
+ | np_ndarray_bool
2025
+ | np_ndarray_anyint
2026
+ | Index [bool ]
2027
+ | Series [bool ]
1997
2028
),
1998
2029
level : Level | None = None ,
1999
2030
fill_value : float | None = None ,
@@ -2002,7 +2033,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
2002
2033
@overload
2003
2034
def radd (
2004
2035
self : Series [int ],
2005
- other : T_COMPLEX | Sequence [T_COMPLEX ] | Series [T_COMPLEX ],
2036
+ other : T_COMPLEX | Sequence [T_COMPLEX ] | Index [ T_COMPLEX ] | Series [T_COMPLEX ],
2006
2037
level : Level | None = None ,
2007
2038
fill_value : float | None = None ,
2008
2039
axis : int = 0 ,
@@ -2024,6 +2055,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
2024
2055
| np_ndarray_bool
2025
2056
| np_ndarray_anyint
2026
2057
| np_ndarray_float
2058
+ | Index [T_INT ]
2027
2059
| Series [T_INT ]
2028
2060
),
2029
2061
level : Level | None = None ,
@@ -2033,7 +2065,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
2033
2065
@overload
2034
2066
def radd (
2035
2067
self : Series [float ],
2036
- other : T_COMPLEX | Sequence [T_COMPLEX ] | Series [T_COMPLEX ],
2068
+ other : T_COMPLEX | Sequence [T_COMPLEX ] | Index [ T_COMPLEX ] | Series [T_COMPLEX ],
2037
2069
level : Level | None = None ,
2038
2070
fill_value : float | None = None ,
2039
2071
axis : int = 0 ,
@@ -2047,6 +2079,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
2047
2079
| np_ndarray_bool
2048
2080
| np_ndarray_anyint
2049
2081
| np_ndarray_float
2082
+ | Index [T_COMPLEX ]
2050
2083
| Series [T_COMPLEX ]
2051
2084
),
2052
2085
level : Level | None = None ,
@@ -2064,7 +2097,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
2064
2097
@overload
2065
2098
def radd (
2066
2099
self : Series [_str ],
2067
- other : _str | Sequence [_str ] | np_ndarray_str | Series [_str ],
2100
+ other : _str | Sequence [_str ] | np_ndarray_str | Index [ _str ] | Series [_str ],
2068
2101
level : Level | None = None ,
2069
2102
fill_value : float | None = None ,
2070
2103
axis : int = 0 ,
0 commit comments