def get_class_name(type_):
    """
    Get just the class name (w/o module(s) from the type.

    Args:
        type_ (type): Class as a type.

    Returns:
        (str|None): Just the name of the class or None.
    """
    try:
        return str(type_).rsplit('.', 1)[1].rstrip("'>")
    except IndexError:
        return None