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