def __contains__(self, other):
        """__contains__(x)

Return True if bitarray contains x, False otherwise.
If x is an integer (which includes booleans), it is determined
whether or not the corresponding bit is contained in the bitarray.
If x is an object which can be cast into a bitarray, such as e.g.
the string '0110', a list, or a bitarray itself, a sequential search
will be performed to determine return value."""
        if isinstance(other, int):
            try:
                self.index(other)
                return True
            except __HOLE__:
                return False
        else:
            return bool(self._search(bitarray(other), 1))
dataset/ETHPy150Open pearu/pylibtiff/libtiff/bitarray-0.3.5-numpy/bitarray/__init__.py/bitarray.__contains__