Skip to content

Commit e068fee

Browse files
committed
wording
1 parent 5569fd9 commit e068fee

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

pandas/core/arrays/datetimes.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,9 @@ class DatetimeArray(dtl.DatetimeLikeArrayMixin,
221221
.. warning::
222222
223223
DatetimeArray is currently experimental, and its API may change
224-
without warning. In particular, :meth:`DatetimeArray.dtype` is
225-
expected to change to always be an ``ExtensionDtype``.
224+
without warning. In particular, :attr:`DatetimeArray.dtype` is
225+
expected to change to always be an instance of an ``ExtensionDtype``
226+
subclass.
226227
227228
Parameters
228229
----------
@@ -520,8 +521,8 @@ def dtype(self):
520521
.. warning::
521522
522523
A future version of pandas will change dtype to never be a
523-
``numpy.dtype``. Instead it will always be a subclass of
524-
:class:`pandas.api.extensions.ExtensionDtype`.
524+
``numpy.dtype``. Instead, :attr:`DatetimeArray.dtype` will
525+
always be an instance of an ``ExtensionDtype`` subclass.
525526
526527
Returns
527528
-------

pandas/core/arrays/timedeltas.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,9 @@ class TimedeltaArray(dtl.DatetimeLikeArrayMixin, dtl.TimelikeOps):
115115
.. warning::
116116
117117
TimedeltaArray is currently experimental, and its API may change
118-
without warning. In particular, :meth:`TimedeltaArray.dtype` is
119-
expected to change to be an ``ExtensionDtype``.
118+
without warning. In particular, :attr:`TimedeltaArray.dtype` is
119+
expected to change to be an instance of an ``ExtensionDtype``
120+
subclass.
120121
121122
Parameters
122123
----------

0 commit comments

Comments
 (0)