Skip to content

Commit e08a647

Browse files
committed
buffer protocol implementation for BitmaskArray
1 parent fa6f6cc commit e08a647

File tree

14 files changed

+284
-115
lines changed

14 files changed

+284
-115
lines changed

pandas/_libs/arrays.pyi

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,13 @@ class NDArrayBacked:
4545
class BitmaskArray:
4646
parent: Self
4747
def __init__(self, data: np.ndarray | Self) -> None: ...
48+
def __len__(self) -> int: ...
4849
def __setitem__(self, key: PositionalIndexer, value: ArrayLike | bool) -> None: ...
4950
def __getitem__(self, key: PositionalIndexer) -> bool: ...
5051
def __invert__(self) -> Self: ...
51-
def __and__(self, other: np.ndarray | Self) -> np.ndarray: ...
52-
def __or__(self, other: np.ndarray | Self) -> np.ndarray: ...
53-
def __xor__(self, other: np.ndarray | Self) -> np.ndarray: ...
52+
def __and__(self, other: np.ndarray | Self | bool) -> np.ndarray: ...
53+
def __or__(self, other: np.ndarray | Self | bool) -> np.ndarray: ...
54+
def __xor__(self, other: np.ndarray | Self | bool) -> np.ndarray: ...
5455
def __getstate__(self) -> dict: ...
5556
def __setstate__(self, other: dict) -> None: ...
5657
def __iter__(self): ...

0 commit comments

Comments
 (0)