Skip to content

Commit e7def7e

Browse files
Dr-Irvbschnurr
andauthored
pandas: handle setitem with Timedelta (#120)
Co-authored-by: Bill Schnurr <[email protected]>
1 parent 708a9b1 commit e7def7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/frame.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import sys
66
from pandas.core.indexing import _iLocIndexer, _LocIndexer
77
from matplotlib.axes import Axes as PlotAxes
88
from pandas._typing import Axes as Axes, Axis as Axis, FilePathOrBuffer as FilePathOrBuffer, Level as Level, Renamer as Renamer
9-
from pandas._typing import num, SeriesAxisType, AxisType, Dtype, DtypeNp, Label, StrLike, Scalar, IndexType, MaskType
9+
from pandas._typing import num, SeriesAxisType, AxisType, Dtype, DtypeNp, Label, StrLike, Scalar, IndexType, MaskType, S1
1010
from pandas.core.generic import NDFrame as NDFrame
1111
from pandas.core.groupby import DataFrameGroupBy as DataFrameGroupBy
1212
from pandas.core.groupby.grouper import Grouper
@@ -74,7 +74,7 @@ class _LocIndexerFrame(_LocIndexer):
7474
def __setitem__(
7575
self,
7676
idx: Union[MaskType, StrLike, Tuple[Union[MaskType, Index, Sequence[Scalar], Series[_bool], Scalar], Union[MaskType, Sequence[Scalar], Scalar]],],
77-
value: Union[Scalar, _np.ndarray, Series[Dtype], DataFrame],
77+
value: Union[S1, _np.ndarray, Series[Dtype], DataFrame],
7878
) -> None: ...
7979

8080

0 commit comments

Comments
 (0)