Skip to content

Commit 570305f

Browse files
committed
sync comments
1 parent 30cab0e commit 570305f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

numpy/__init__.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1777,13 +1777,15 @@ class _ArrayOrScalarCommon:
17771777
@overload
17781778
def compress(self, /, condition: _ArrayLikeInt_co, axis: SupportsIndex | None = None, *, out: _ArrayT) -> _ArrayT: ...
17791779

1780+
# Keep in sync with `MaskedArray.cumprod`
17801781
@overload # out: None (default)
17811782
def cumprod(self, /, axis: SupportsIndex | None = None, dtype: DTypeLike | None = None, out: None = None) -> NDArray[Any]: ...
17821783
@overload # out: ndarray
17831784
def cumprod(self, /, axis: SupportsIndex | None, dtype: DTypeLike | None, out: _ArrayT) -> _ArrayT: ...
17841785
@overload
17851786
def cumprod(self, /, axis: SupportsIndex | None = None, dtype: DTypeLike | None = None, *, out: _ArrayT) -> _ArrayT: ...
17861787

1788+
# Keep in sync with `MaskedArray.cumsum`
17871789
@overload # out: None (default)
17881790
def cumsum(self, /, axis: SupportsIndex | None = None, dtype: DTypeLike | None = None, out: None = None) -> NDArray[Any]: ...
17891791
@overload # out: ndarray

numpy/ma/core.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,6 +1138,7 @@ class MaskedArray(ndarray[_ShapeT_co, _DTypeT_co]):
11381138
def dot(self, b, out=..., strict=...): ...
11391139
def sum(self, axis=..., dtype=..., out=..., keepdims=...): ...
11401140

1141+
# Keep in sync with `ndarray.cumsum`
11411142
@overload # out: None (default)
11421143
def cumsum(self, /, axis: SupportsIndex | None = None, dtype: DTypeLike | None = None, out: None = None) -> _MaskedArray[Any]: ...
11431144
@overload # out: ndarray
@@ -1148,6 +1149,8 @@ class MaskedArray(ndarray[_ShapeT_co, _DTypeT_co]):
11481149
def prod(self, axis=..., dtype=..., out=..., keepdims=...): ...
11491150
product: Any
11501151

1152+
# Keep in sync with `ndarray.cumprod`
1153+
@overload # out: None (default)
11511154
@overload # out: None (default)
11521155
def cumprod(self, /, axis: SupportsIndex | None = None, dtype: DTypeLike | None = None, out: None = None) -> _MaskedArray[Any]: ...
11531156
@overload # out: ndarray

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy