Skip to content

Commit 9b646e2

Browse files
committed
Doc fixup
1 parent b1aac08 commit 9b646e2

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

pandas/core/dtypes/base.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ class ExtensionDtype(_DtypeOpsMixin):
127127
* _is_numeric
128128
129129
Optionally one can override construct_array_type for construction
130-
with the name of this dtype via the Registry
130+
with the name of this dtype via the Registry. See
131+
:meth:`pandas.api.extensions.register_extension_dtype`.
131132
132133
* construct_array_type
133134
@@ -138,6 +139,11 @@ class ExtensionDtype(_DtypeOpsMixin):
138139
Methods and properties required by the interface raise
139140
``pandas.errors.AbstractMethodError`` and no ``register`` method is
140141
provided for registering virtual subclasses.
142+
143+
See Also
144+
--------
145+
pandas.api.extensions.register_extension_dtype
146+
pandas.api.extensions.ExtensionArray
141147
"""
142148

143149
def __str__(self):

pandas/core/dtypes/dtypes.py

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
def register_extension_dtype(cls):
1212
"""Class decorator to register an ExtensionType with pandas.
1313
14+
.. versionadded:: 0.24.0
15+
1416
This enables operations like ``.astype(name)`` for the name
1517
of the ExtensionDtype.
1618

0 commit comments

Comments
 (0)