def __iand__(self, other: Optional[bitmap]) -> bitmap: if other is None: other = NIL_BITMAP if isinstance(other, bitmap): BitMap.__iand__(self.bm, other.bm) return self raise TypeError("Invalid type {type(other)}")
def __iand__(self, other): if other is None: other = NIL_BITMAP return BitMap.__iand__(self, other)