def class_has_parent(_class: type, parent_class: type) -> bool:
    """Checks if a class has a given parent class"""
    for base in _class.__bases__:
        if base == parent_class:
            return True
    return False