class_docstr: A variation on
  https://groups.google.com/group/comp.lang.python/msg/26f7b4fcb4d66c95
  by Paul McGuire
class_docstr_tok: ["A","variation","on","https",":","\/\/groups.google.com\/group\/comp.lang.python\/msg\/26f7b4fcb4d66c95","by","Paul","McGuire"]
code: def __new__(
      mcs, name: str, bases: tuple[type, ...], clsdict: dict[str, Any]
  ) -> Any:
      if not ("__doc__" in clsdict and clsdict["__doc__"]):
          for mro_cls in (
              mro_cls for base in bases for mro_cls in base.mro()
          ):
              doc = mro_cls.__doc__
              if doc:
                  clsdict["__doc__"] = doc
                  break
      for attr, attribute in clsdict.items():
          if not attribute.__doc__:
              for mro_cls in (
                  mro_cls
                  for base in bases
                  for mro_cls in base.mro()
                  if hasattr(mro_cls, attr)
              ):
                  doc = getattr(mro_cls, attr).__doc__
                  if doc:
                      if isinstance(attribute, cached_property):
                          attribute.func.__doc__ = doc
                          clsdict[attr] = cached_property(
                              attribute.func
                          )
                      elif isinstance(attribute, property):
                          clsdict[attr] = property(
                              attribute.__get__,
                              attribute.__set__,
                              attribute.__delete__,
                              doc,
                          )
                      else:
                          attribute.__doc__ = doc
                      break
      return type.__new__(mcs, name, bases, clsdict)
  
imports: from __future__ import annotations
  from arch.compat.pandas import is_datetime64_any_dtype
  from abc import ABCMeta
  from collections.abc import Hashable, Sequence
  import datetime
  from functools import cached_property
  from typing import Any, Literal, overload
  import numpy
  from pandas import DataFrame, DatetimeIndex, Index, NaT, Series, Timestamp, to_datetime
  from arch.typing import AnyPandas, ArrayLike, DateLike, NDArray
label_desc: Use image node_id 1 for calling the DocStringInheritor obj's underlying member method code with example usage: obj.__new__(mcs, name, bases, clsdict) and returns: type