def hasattr_really(obj: object, attr) -> bool:
    """
    Examines whether an object really has an attribute, without calling
    __getattr__, which in states looks up the attribute in the monitor
    it is part of.
    :param obj: the object to look for the attribute.
    :param attr: the attribute.
    :return: True iff the attribute is really defined in that object.
    """
    try:
        obj.__getattribute__(attr)
        return True
    except:
        return False