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