File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
pandas-stubs/_libs/tslibs Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -390,3 +390,5 @@ class Timedelta(timedelta):
390
390
@property
391
391
def components (self ) -> Components : ...
392
392
def view (self , dtype : npt .DTypeLike = ...) -> object : ...
393
+ @property
394
+ def unit (self ) -> str : ...
Original file line number Diff line number Diff line change @@ -517,6 +517,7 @@ def test_timedelta_properties_methods() -> None:
517
517
check (assert_type (td .value , int ), int )
518
518
check (assert_type (td .resolution_string , str ), str )
519
519
check (assert_type (td .components , Components ), Components )
520
+ check (assert_type (td .unit , str ), str )
520
521
521
522
check (assert_type (td .ceil ("D" ), pd .Timedelta ), pd .Timedelta )
522
523
check (assert_type (td .floor (Day ()), pd .Timedelta ), pd .Timedelta )
You can’t perform that action at this time.
0 commit comments