from typing import Any


def issubclass_safe(candidate: Any, ancestor: Any) -> bool:
    """Returns True the candidate is a subclass of the ancestor, else False. Will return false instead of raising TypeError if the candidate is not a class."""
    try:
        return issubclass(candidate, ancestor)
    except TypeError:
        return False