8000 TYP: Type ``ma.MaskedArray.min`` by MarcoGorelli · Pull Request #28616 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

TYP: Type ma.MaskedArray.min #28616

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 1, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
type: ignore[override]
  • Loading branch information
MarcoGorelli committed Apr 1, 2025
commit 6435c0a27e9dd561c4f856bb5cf31d0944854ced
18 changes: 9 additions & 9 deletions numpy/ma/core.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing import Any, Literal, SupportsIndex, TypeVar, overload, TypeAlias

from _typeshed import Incomplete
from typing_extensions import deprecated
from typing_extensions import deprecated, override

from numpy import (
_OrderKACF,
Expand Down Expand Up @@ -468,32 +468,32 @@ class MaskedArray(ndarray[_ShapeType_co, _DType_co]):
def argmin(self, axis=..., fill_value=..., out=..., *, keepdims=...): ...
def argmax(self, axis=..., fill_value=..., out=..., *, keepdims=...): ...
def sort(self, axis=..., kind=..., order=..., endwith=..., fill_value=..., *, stable=...): ...
@overload
def min(
@override
def min( # type: ignore[override]
self: _MaskedArray[_SCT],
axis: None = None,
out: None = None,
fill_value: _ScalarLike_co | None = None,
keepdims: Literal[False] | _NoValueType = ...,
) -> _SCT: ...
@overload
def min(
@override
def min( # type: ignore[override]
self,
axis: _ShapeLike | None = None,
out: None = None,
fill_value: _ScalarLike_co | None = None,
keepdims: bool | _NoValueType = ...
) -> Any: ...
@overload
def min(
@override
def min( # type: ignore[override]
self,
axis: None,
out: _ArrayType,
fill_value: _ScalarLike_co | None = None,
keepdims: bool | _NoValueType = ...,
) -> _ArrayType: ...
@overload
def min(
@override
def min( # type: ignore[override]
self,
axis: _ShapeLike | None = None,
*,
Expand Down
Loading
0