Skip to content

TYP: Type MaskedArray.__{iadd,isub,imul,itruediv,ifloordiv,ipow}__ #28986

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 9 commits into from
May 19, 2025
Prev Previous commit
Next Next commit
dtype -> np.dtype
  • Loading branch information
MarcoGorelli committed May 19, 2025
commit 75dfcd23314aeaf2b83d6605ed60431fc91f9d7c
5 changes: 2 additions & 3 deletions numpy/typing/tests/data/pass/ma.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
from typing import Any, TypeAlias, TypeVar, cast

import numpy as np
from numpy import dtype, generic
import numpy.typing as npt
from numpy._typing import _Shape

_ScalarT = TypeVar("_ScalarT", bound=generic)
MaskedArray: TypeAlias = np.ma.MaskedArray[_Shape, dtype[_ScalarT]]
_ScalarT = TypeVar("_ScalarT", bound=np.generic)
MaskedArray: TypeAlias = np.ma.MaskedArray[_Shape, np.dtype[_ScalarT]]

MAR_b: MaskedArray[np.bool] = np.ma.MaskedArray([True])
MAR_u: MaskedArray[np.uint32] = np.ma.MaskedArray([1], dtype=np.uint32)
Expand Down
Loading
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