@@ -1944,6 +1944,10 @@ class Timedelta(_Timedelta):
19441944
19451945 _req_any_kwargs_new = {" weeks" , " days" , " hours" , " minutes" , " seconds" ,
19461946 " milliseconds" , " microseconds" , " nanoseconds" }
1947+
1948+ Timedelta.min = Timedelta(np.timedelta64(np.iinfo(np.int64).min + 1 , ' ns' ))
1949+ Timedelta.max = Timedelta(np.timedelta64(np.iinfo(np.int64).max, ' ns' ))
1950+ Timedelta.resolution = Timedelta(1 , unit = ' ns' )
19471951
19481952 def __new__ (cls , object value = _no_input, unit = None , **kwargs ):
19491953 if value is _no_input:
@@ -2424,38 +2428,6 @@ class Timedelta(_Timedelta):
24242428 return div, other - div * self
24252429
24262430
2427- Timedelta.min = Timedelta(np.timedelta64(np.iinfo(np.int64).min + 1 , " ns" ))
2428- Timedelta.max = Timedelta(np.timedelta64(np.iinfo(np.int64).max, " ns" ))
2429- Timedelta.resolution = Timedelta(1 , unit = " ns" )
2430-
2431- Timedelta.min.__doc__ = """
2432- The minimum representable Timedelta.
2433-
2434- Returns
2435- -------
2436- Timedelta
2437- The minimum duration supported by Timedelta.
2438- """
2439-
2440- Timedelta.max.__doc__ = """
2441- The maximum representable Timedelta.
2442-
2443- Returns
2444- -------
2445- Timedelta
2446- The maximum duration supported by Timedelta.
2447- """
2448-
2449- Timedelta.resolution.__doc__ = """
2450- The smallest possible difference between non-equal Timedelta objects.
2451-
2452- Returns
2453- -------
2454- Timedelta
2455- The resolution of Timedelta, i.e., Timedelta(nanoseconds=1).
2456- """
2457-
2458-
24592431def truediv_object_array (ndarray left , ndarray right ):
24602432 cdef:
24612433 ndarray[object ] result = np.empty((< object > left).shape, dtype = object )
0 commit comments