@@ -1624,9 +1624,9 @@ class Series(IndexOpsMixin[S1], NDFrame):
16241624 # just failed to generate these so I couldn't match
16251625 # them up.
16261626 @overload
1627- def __add__ (self : Series [Never ], other : Scalar | _ListLike | Series ) -> Series : ...
1627+ def __add__ (self : Series [Never ], other : Scalar | _ListLike | Series ) -> Series : ... # type: ignore[overload-overlap]
16281628 @overload
1629- def __add__ (self , other : Series [Never ]) -> Series : ...
1629+ def __add__ (self , other : Series [Never ]) -> Series : ... # type: ignore[overload-overlap]
16301630 @overload
16311631 def __add__ (
16321632 self : Series [bool ],
@@ -1709,6 +1709,15 @@ class Series(IndexOpsMixin[S1], NDFrame):
17091709 other : datetime | np .datetime64 | np_ndarray_dt | Series [Timestamp ],
17101710 ) -> Series [Timestamp ]: ...
17111711 @overload
1712+ def __add__ (
1713+ self : Series [Timedelta ],
1714+ other : timedelta | np .timedelta64 | np_ndarray_td | TimedeltaSeries ,
1715+ ) -> TimedeltaSeries : ...
1716+ @overload
1717+ def __add__ (
1718+ self : Series [Timedelta ], other : Series [Timedelta ]
1719+ ) -> Series [Timedelta ]: ...
1720+ @overload
17121721 def __add__ (self : Series [Timedelta ], other : Period ) -> PeriodSeries : ...
17131722 @overload
17141723 def add (
@@ -2235,16 +2244,38 @@ class Series(IndexOpsMixin[S1], NDFrame):
22352244 other : timedelta | np .timedelta64 | np_ndarray_td | TimedeltaSeries ,
22362245 ) -> TimedeltaSeries : ...
22372246 @overload
2247+ def __mul__ (self : Series [bool ], other : Series [Timedelta ]) -> Series [Timedelta ]: ... # type: ignore[overload-overlap]
2248+ @overload
22382249 def __mul__ (
22392250 self : Series [int ],
22402251 other : timedelta | np .timedelta64 | np_ndarray_td | TimedeltaSeries ,
22412252 ) -> TimedeltaSeries : ...
22422253 @overload
2254+ def __mul__ (self : Series [int ], other : Series [Timedelta ]) -> Series [Timedelta ]: ...
2255+ @overload
22432256 def __mul__ (
22442257 self : Series [float ],
22452258 other : timedelta | np .timedelta64 | np_ndarray_td | TimedeltaSeries ,
22462259 ) -> TimedeltaSeries : ...
22472260 @overload
2261+ def __mul__ (self : Series [float ], other : Series [Timedelta ]) -> Series [Timedelta ]: ...
2262+ @overload
2263+ def __mul__ (
2264+ self : Series [Timedelta ],
2265+ other : (
2266+ float
2267+ | Sequence [float ]
2268+ | np_ndarray_bool
2269+ | np_ndarray_anyint
2270+ | np_ndarray_float
2271+ ),
2272+ ) -> TimedeltaSeries : ...
2273+ @overload
2274+ def __mul__ (
2275+ self : Series [Timedelta ],
2276+ other : Series [bool ] | Series [int ] | Series [float ],
2277+ ) -> Series [Timedelta ]: ...
2278+ @overload
22482279 def mul (
22492280 self : Series [Never ],
22502281 other : complex | _ListLike | Series ,
@@ -2436,19 +2467,49 @@ class Series(IndexOpsMixin[S1], NDFrame):
24362467 self : Series [_T_COMPLEX ], other : np_ndarray_complex
24372468 ) -> Series [complex ]: ...
24382469 @overload
2439- def __rmul__ (
2470+ def __rmul__ ( # type: ignore[misc]
24402471 self : Series [bool ],
2441- other : timedelta | np .timedelta64 | np_ndarray_td | TimedeltaSeries ,
2472+ other : (
2473+ timedelta
2474+ | np .timedelta64
2475+ | np_ndarray_td
2476+ | Series [Timedelta ]
2477+ | TimedeltaSeries
2478+ ),
24422479 ) -> TimedeltaSeries : ...
24432480 @overload
2444- def __rmul__ (
2481+ def __rmul__ ( # type: ignore[misc]
24452482 self : Series [int ],
2446- other : timedelta | np .timedelta64 | np_ndarray_td | TimedeltaSeries ,
2483+ other : (
2484+ timedelta
2485+ | np .timedelta64
2486+ | np_ndarray_td
2487+ | Series [Timedelta ]
2488+ | TimedeltaSeries
2489+ ),
24472490 ) -> TimedeltaSeries : ...
24482491 @overload
2449- def __rmul__ (
2492+ def __rmul__ ( # type: ignore[misc]
24502493 self : Series [float ],
2451- other : timedelta | np .timedelta64 | np_ndarray_td | TimedeltaSeries ,
2494+ other : (
2495+ timedelta
2496+ | np .timedelta64
2497+ | np_ndarray_td
2498+ | Series [Timedelta ]
2499+ | TimedeltaSeries
2500+ ),
2501+ ) -> TimedeltaSeries : ...
2502+ @overload
2503+ def __rmul__ (
2504+ self : Series [Timedelta ],
2505+ other : (
2506+ float
2507+ | Sequence [float ]
2508+ | np_ndarray_bool
2509+ | np_ndarray_anyint
2510+ | np_ndarray_float
2511+ | Series [_T_INT ]
2512+ ),
24522513 ) -> TimedeltaSeries : ...
24532514 @overload
24542515 def rmul (
@@ -2627,16 +2688,17 @@ class Series(IndexOpsMixin[S1], NDFrame):
26272688 @overload
26282689 def __rxor__ (self , other : int | np_ndarray_anyint | Series [int ]) -> Series [int ]: ...
26292690 @overload
2630- def __sub__ (self , other : Series [Never ]) -> Series : ... # type: ignore[overload-overlap]
2691+ def __sub__ (self : Series [ Never ] , other : Series [Never ]) -> Series : ... # type: ignore[overload-overlap]
26312692 @overload
26322693 def __sub__ (
2633- self : Series [Never ],
2634- other : datetime | np .datetime64 | np_ndarray_dt | Series [Timestamp ],
2694+ self : Series [Never ], other : datetime | np .datetime64 | np_ndarray_dt
26352695 ) -> TimedeltaSeries : ...
26362696 @overload
2637- def __sub__ ( # type: ignore[overload-overlap]
2638- self : Series [Never ], other : complex | _ListLike | Series
2639- ) -> Series : ...
2697+ def __sub__ (self : Series [Never ], other : Series [Timestamp ]) -> Series [Timedelta ]: ...
2698+ @overload
2699+ def __sub__ (self : Series [Never ], other : complex | _ListLike | Series ) -> Series : ...
2700+ @overload
2701+ def __sub__ (self , other : Series [Never ]) -> Series : ... # type: ignore[overload-overlap]
26402702 @overload
26412703 def __sub__ (
26422704 self : Series [bool ],
@@ -2702,18 +2764,20 @@ class Series(IndexOpsMixin[S1], NDFrame):
27022764 ) -> Series [complex ]: ...
27032765 @overload
27042766 def __sub__ (
2705- self : Series [Timestamp ],
2706- other : datetime | np .datetime64 | np_ndarray_dt | Series [Timestamp ],
2767+ self : Series [Timestamp ], other : datetime | np .datetime64 | np_ndarray_dt
27072768 ) -> TimedeltaSeries : ...
27082769 @overload
2770+ def __sub__ (
2771+ self : Series [Timestamp ], other : Series [Timestamp ]
2772+ ) -> Series [Timedelta ]: ...
2773+ @overload
27092774 def __sub__ (
27102775 self : Series [Timestamp ],
27112776 other : (
27122777 timedelta
27132778 | np .timedelta64
27142779 | np_ndarray_td
27152780 | TimedeltaIndex
2716- | Series [Timedelta ]
27172781 | TimedeltaSeries
27182782 | BaseOffset
27192783 ),
@@ -2726,7 +2790,6 @@ class Series(IndexOpsMixin[S1], NDFrame):
27262790 | np .timedelta64
27272791 | np_ndarray_td
27282792 | TimedeltaIndex
2729- | Series [Timedelta ]
27302793 | TimedeltaSeries
27312794 ),
27322795 ) -> TimedeltaSeries : ...
0 commit comments