File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -838,6 +838,7 @@ SeriesDTypeClosure: TypeAlias = (
838
838
| list [str ]
839
839
)
840
840
S1C = TypeVar ("S1C" , bound = SeriesDTypeClosure , default = Any )
841
+ S2C = TypeVar ("S2C" , bound = SeriesDTypeClosure )
841
842
842
843
SeriesDType : TypeAlias = (
843
844
SeriesDTypeClosure
Original file line number Diff line number Diff line change @@ -188,6 +188,7 @@ from pandas.core.dtypes.dtypes import CategoricalDtype
188
188
from pandas .plotting import PlotAccessor
189
189
190
190
_T_COMPLEX = TypeVar ("_T_COMPLEX" , bound = complex )
191
+ _T_TIMESTAMP = TypeVar ("_T_TIMESTAMP" , bound = Timestamp )
191
192
192
193
_scalar_timestamp : TypeAlias = date | datetime | np .datetime64
193
194
_vector_timestamp : TypeAlias = (
@@ -2051,7 +2052,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
2051
2052
) -> Series [Timestamp ]: ...
2052
2053
@overload
2053
2054
def __sub__ (
2054
- self : Series [Timestamp ], other : _nonseries_timestamp | Series [Timestamp ]
2055
+ self : Series [Timestamp ], other : _nonseries_timestamp | Series [_T_TIMESTAMP ]
2055
2056
) -> TimedeltaSeries : ...
2056
2057
@overload
2057
2058
def __truediv__ (
@@ -2917,7 +2918,7 @@ class TimedeltaSeries(Series[Timedelta]):
2917
2918
numeric_only : _bool = ...,
2918
2919
** kwargs : Any ,
2919
2920
) -> Timedelta : ...
2920
- def median ( # mypy : ignore[override]
2921
+ def median ( # type : ignore[override]
2921
2922
self ,
2922
2923
axis : AxisIndex | None = ...,
2923
2924
skipna : _bool = ...,
You can’t perform that action at this time.
0 commit comments