def inheritdocs(class_):
    """
    Args:
        method (function): the method to make immutable
    """
    for name, method in vars(class_).items():
        if not method.__doc__:
            for parent in class_.__bases__:
                try:
                    p_method = getattr(parent, name)
                    if p_method and p_method.__doc__:
                        method.__doc__ = p_method.__doc__
                except __HOLE__:
                    continue
    return class_
dataset/ETHPy150Open meraki-analytics/cassiopeia/cassiopeia/type/core/common.py/inheritdocs