@@ -1031,13 +1031,6 @@ cdef class _Timedelta(timedelta):
1031
1031
# int64_t _d, _h, _m, _s, _ms, _us, _ns
1032
1032
# NPY_DATETIMEUNIT _reso
1033
1033
1034
- """
1035
- Attributes:
1036
- min (Timedelta): Minimum allowable value for Timedelta.
1037
- max (Timedelta): Maximum allowable value for Timedelta.
1038
- resolution (Timedelta): Resolution of the Timedelta.
1039
- """
1040
-
1041
1034
# higher than np.ndarray and np.matrix
1042
1035
__array_priority__ = 100
1043
1036
min = MinMaxReso(" min" )
@@ -1901,6 +1894,17 @@ class Timedelta(_Timedelta):
1901
1894
Values for construction in compat with datetime.timedelta.
1902
1895
Numpy ints and floats will be coerced to python ints and floats.
1903
1896
1897
+ Attributes
1898
+ ----------
1899
+ min : Timedelta, readonly
1900
+ The minimum representable `Timedelta`, corresponding to the smallest
1901
+ duration supported.
1902
+ max : Timedelta, readonly
1903
+ The maximum representable `Timedelta`, corresponding to the largest
1904
+ duration supported.
1905
+ resolution : Timedelta, readonly
1906
+ The smallest possible difference between non-equal `Timedelta` objects.
1907
+
1904
1908
See Also
1905
1909
--------
1906
1910
Timestamp : Represents a single timestamp in time.
@@ -1940,6 +1944,10 @@ class Timedelta(_Timedelta):
1940
1944
_req_any_kwargs_new = {" weeks" , " days" , " hours" , " minutes" , " seconds" ,
1941
1945
" milliseconds" , " microseconds" , " nanoseconds" }
1942
1946
1947
+ min = MinMaxReso(" min" )
1948
+ max = MinMaxReso(" max" )
1949
+ resolution = MinMaxReso(" resolution" )
1950
+
1943
1951
def __new__ (cls , object value = _no_input, unit = None , **kwargs ):
1944
1952
if value is _no_input:
1945
1953
if not len (kwargs):
0 commit comments