File tree 1 file changed +15
-4
lines changed
pandas-stubs/_libs/tslibs
1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -86,12 +86,19 @@ class Timedelta(timedelta):
86
86
min : ClassVar [Timedelta ]
87
87
max : ClassVar [Timedelta ]
88
88
resolution : ClassVar [Timedelta ]
89
- value : int # np.int64
89
+ value : int
90
90
def __new__ (
91
91
cls : type [_S ],
92
- value = ...,
93
- unit : str = ...,
94
- ** kwargs : float | np .integer | np .floating ,
92
+ value : str | int | Timedelta | timedelta | np .timedelta64 = ...,
93
+ unit : TimeDeltaUnitChoices = ...,
94
+ * ,
95
+ days : float | np .integer | np .floating = ...,
96
+ seconds : float | np .integer | np .floating = ...,
97
+ microseconds : float | np .integer | np .floating = ...,
98
+ milliseconds : float | np .integer | np .floating = ...,
99
+ minutes : float | np .integer | np .floating = ...,
100
+ hours : float | np .integer | np .floating = ...,
101
+ weeks : float | np .integer | np .floating = ...,
95
102
) -> _S : ...
96
103
# GH 46171
97
104
# While Timedelta can return pd.NaT, having the constructor return
@@ -154,3 +161,7 @@ class Timedelta(timedelta):
154
161
def __hash__ (self ) -> int : ...
155
162
def isoformat (self ) -> str : ...
156
163
def to_numpy (self ) -> np .timedelta64 : ...
164
+ @property
165
+ def freq (self ) -> None : ...
166
+ @property
167
+ def is_populated (self ) -> bool : ...
You can’t perform that action at this time.
0 commit comments