File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ class Timedelta(timedelta):
39
39
unit : str = ...,
40
40
** kwargs : int | float | np .integer | np .floating ,
41
41
) -> _S : ...
42
+ # GH 46171
43
+ # While Timedelta can return pd.NaT, having the constructor return
44
+ # a Union with NaTType makes things awkward for users of pandas
42
45
@property
43
46
def days (self ) -> int : ...
44
47
@property
Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ class Timestamp(datetime):
55
55
* ,
56
56
fold : int | None = ...,
57
57
) -> _DatetimeT : ...
58
+ # GH 46171
59
+ # While Timestamp can return pd.NaT, having the constructor return
60
+ # a Union with NaTType makes things awkward for users of pandas
58
61
def _set_freq (self , freq : BaseOffset | None ) -> None : ...
59
62
@property
60
63
def year (self ) -> int : ...
You can’t perform that action at this time.
0 commit comments