def has_attribute(t, key: str) -> bool:
    """
    Check if a callable has an attribute

    :param t: the callable
    :param key: the key, the attributes name
    :return: True if callable contains attribute, otherwise False
    """

    return hasattr(t, key)