parameters: (cls: type[E])
return_statement: return cls
docstring: Register an ExtensionType with pandas as class decorator.
  
      This enables operations like ``.astype(name)`` for the name
      of the ExtensionDtype.
  
      Returns
      -------
      callable
          A class decorator.
  
      Examples
      --------
      >>> from pandas.api.extensions import register_extension_dtype
      >>> from pandas.api.extensions import ExtensionDtype
      >>> @register_extension_dtype
      ... class MyExtensionDtype(ExtensionDtype):
      ...     name = "myextension"
docstring_summary: Register an ExtensionType with pandas as class decorator.
docstring_tokens: Register an ExtensionType with pandas as class decorator .
function: def register_extension_dtype(cls: type[E]) -> type[E]:
      """
      Register an ExtensionType with pandas as class decorator.
  
      This enables operations like ``.astype(name)`` for the name
      of the ExtensionDtype.
  
      Returns
      -------
      callable
          A class decorator.
  
      Examples
      --------
      >>> from pandas.api.extensions import register_extension_dtype
      >>> from pandas.api.extensions import ExtensionDtype
      >>> @register_extension_dtype
      ... class MyExtensionDtype(ExtensionDtype):
      ...     name = "myextension"
      """
      _registry.register(cls)
      return cls
function_tokens: def register_extension_dtype ( cls : type [ E ] ) -> type [ E ] : _registry . register ( cls ) return cls