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