def truth(self, other):
        if other is self:
            return True
        elif other is True:
            return True
        elif other is False:
            return False
        else:
            raise TypeError(type(other).__name__)
dataset/ETHPy150Open jek/flatland/flatland/util/base.py/Maybe.truth/original