def register_extension_dtype(cls):
registry.register(cls)<EOL>return cls<EOL>
Register an ExtensionType with pandas as class decorator.

.. versionadded:: 0.24.0

This enables operations like ``.astype(name)`` for the name
of the ExtensionDtype.

Examples
--------
>>> from pandas.api.extensions import register_extension_dtype
>>> from pandas.api.extensions import ExtensionDtype
>>> @register_extension_dtype
... class MyExtensionDtype(ExtensionDtype):
...     pass