8000 TYP: Type ``MaskedArray.__{ge,gt,le,lt}__`` by MarcoGorelli · Pull Request #28689 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

TYP: Type MaskedArray.__{ge,gt,le,lt}__ #28689

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 8 commits into from
Apr 15, 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
Merge remote-tracking branch 'upstream/main' into ma-ge
  • Loading branch information
MarcoGorelli committed Apr 14, 2025
commit 925adea080f4c6fa3b5c28378f5ee37714fd776b
7 changes: 2 additions & 5 deletions numpy/ma/core.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,9 @@ _ShapeT_co = TypeVar("_ShapeT_co", bound=tuple[int, ...], covariant=True)
_DTypeT = TypeVar("_DTypeT", bound=dtype[Any])
_DTypeT_co = TypeVar("_DTypeT_co", bound=dtype[Any], covariant=True)
_ArrayT = TypeVar("_ArrayT", bound=ndarray[Any, Any])
_SCT = TypeVar("_SCT", bound=generic)
_SCT_co = TypeVar("_SCT_co", bound=generic, covariant=True)
_ScalarT = TypeVar("_ScalarT", bound=generic)
# A subset of `MaskedArray` that can be parametrized w.r.t. `np.generic`
_MaskedArray: TypeAlias = MaskedArray[_Shape, dtype[_SCT_co]]
_MaskedArrayNumber_co: TypeAlias = _MaskedArray[number | bool_]
_MaskedArrayTD64_co: TypeAlias = _MaskedArray[timedelta64 | integer | bool_]
_MaskedArray: TypeAlias = MaskedArray[_Shape, dtype[_ScalarT]]

MaskType = bool
nomask: bool
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.
0