示例#1
0
 def __or__(self, other):
     if other is None:
         other = NIL_BITMAP
     return bitmap(BitMap.__or__(self, other))
示例#2
0
 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)}")