Skip to content

Commit 105a91a

Browse files
committed
Changed dtype -> None
1 parent 40a8180 commit 105a91a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pandas/_libs/tslibs/timedeltas.pyx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,16 +1448,17 @@ cdef class _Timedelta(timedelta):
14481448

14491449
Parameters
14501450
----------
1451-
dtype : NoneType
1452-
It is available here only for compatibility. Its value will not
1453-
affect the return value.
1451+
dtype : None, optional
1452+
Data type of the output, ignored in this method as the return type
1453+
is always `numpy.datetime64`.
14541454
copy : bool, default False
1455-
It is available here only for compatibility. Its value will not
1456-
affect the return value.
1455+
Whether to ensure that the returned value is a new object. This
1456+
parameter is also ignored as the method does not support copying.
14571457

14581458
Returns
14591459
-------
14601460
numpy.timedelta64
1461+
NumPy timedelta64 representation of the Timedelta
14611462

14621463
See Also
14631464
--------

0 commit comments

Comments
 (0)