Skip to content

Commit 5c480ca

Browse files
committed
trying to override docstring to avoid unknown paramter error
1 parent b6271bb commit 5c480ca

File tree

1 file changed

+51
-2
lines changed

1 file changed

+51
-2
lines changed

pandas/_libs/tslibs/timedeltas.pyx

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1899,12 +1899,28 @@ class Timedelta(_Timedelta):
18991899
min : Timedelta
19001900
The minimum representable `Timedelta`, corresponding to the smallest
19011901
duration supported.
1902+
1903+
See Also
1904+
--------
1905+
Timedelta.max : The maximum representable `Timedelta`.
1906+
Timedelta.resolution : The smallest possible difference between non-equal `Timedelta` objects.
1907+
19021908
max : Timedelta
19031909
The maximum representable `Timedelta`, corresponding to the largest
19041910
duration supported.
1911+
1912+
See Also
1913+
--------
1914+
Timedelta.min : The minimum representable `Timedelta`.
1915+
Timedelta.resolution : The smallest possible difference between non-equal `Timedelta` objects.
1916+
19051917
resolution : Timedelta
1906-
The smallest possible difference between non-equal `Timedelta` objects,
1907-
i.e., `Timedelta(nanoseconds=1)`.
1918+
The smallest possible difference between non-equal `Timedelta` objects.
1919+
1920+
See Also
1921+
--------
1922+
Timedelta.min : The minimum representable `Timedelta`.
1923+
Timedelta.max : The maximum representable `Timedelta`.
19081924
19091925
See Also
19101926
--------
@@ -1942,6 +1958,39 @@ class Timedelta(_Timedelta):
19421958
We see that either way we get the same result
19431959
"""
19441960

1961+
min = _Timedelta.min
1962+
max = _Timedelta.max
1963+
resolution = _Timedelta.resolution
1964+
1965+
min.__doc__ = """
1966+
The minimum representable `Timedelta`, corresponding to the smallest
1967+
duration supported.
1968+
1969+
See Also
1970+
--------
1971+
Timedelta.max : The maximum representable `Timedelta`.
1972+
Timedelta.resolution : The smallest possible difference between non-equal `Timedelta` objects.
1973+
"""
1974+
1975+
max.__doc__ = """
1976+
The maximum representable `Timedelta`, corresponding to the largest
1977+
duration supported.
1978+
1979+
See Also
1980+
--------
1981+
Timedelta.min : The minimum representable `Timedelta`.
1982+
Timedelta.resolution : The smallest possible difference between non-equal `Timedelta` objects.
1983+
"""
1984+
1985+
resolution.__doc__ = """
1986+
The smallest possible difference between non-equal `Timedelta` objects.
1987+
1988+
See Also
1989+
--------
1990+
Timedelta.min : The minimum representable `Timedelta`.
1991+
Timedelta.max : The maximum representable `Timedelta`.
1992+
"""
1993+
19451994
_req_any_kwargs_new = {"weeks", "days", "hours", "minutes", "seconds",
19461995
"milliseconds", "microseconds", "nanoseconds"}
19471996

0 commit comments

Comments
 (0)