import re


def class2str(class_: object) -> str:
    """Convert class to str.

    Args:
        class_ (object): class object

    Returns:
        str : Class name.

    Examples:
        >>> from veditor.utils import class2str
        >>> class2str(str)
        'str'
        >>> class2str(tuple)
        'tuple'
    """
    return re.sub(r"<class '(.*?)'>", r"\1", str(class_))