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
go back to overload
  • Loading branch information
MarcoGorelli committed Apr 1, 2025
commit 48c169434db26ca046d151ad3ef548d634f85e25
10 changes: 5 additions & 5 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, override
from typing_extensions import deprecated

from numpy import (
_OrderKACF,
Expand Down Expand Up @@ -468,31 +468,31 @@ 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=...): ...
@override
@overload
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: ...
@override
@overload
def min( # type: ignore[override]
self,
axis: _ShapeLike | None = None,
out: None = None,
fill_value: _ScalarLike_co | None = None,
keepdims: bool | _NoValueType = ...
) -> Any: ...
@override
@overload
def min( # type: ignore[override]
self,
axis: None,
out: _ArrayType,
fill_value: _ScalarLike_co | None = None,
keepdims: bool | _NoValueType = ...,
) -> _ArrayType: ...
@override
@overload
def min( # type: ignore[override]
self,
axis: _ShapeLike | None = None,
Expand Down
Loading
0