def __invert__(self):
        """Overloads unary ~"""
        return BitString(~self._bits % (1 << self._length), self._length)
dataset/ETHPy150Open hosford42/xcs/xcs/_python_bitstrings.py/BitString.__invert__/original