PHP 8.2.30
Preview: mrecords.pyi Size: 1.89 KB
//opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/ma/mrecords.pyi

from typing import Any, TypeVar

from numpy import dtype
from numpy.ma import MaskedArray

__all__: list[str]

# TODO: Set the `bound` to something more suitable once we
# have proper shape support
_ShapeType = TypeVar("_ShapeType", bound=Any)
_DType_co = TypeVar("_DType_co", bound=dtype[Any], covariant=True)

class MaskedRecords(MaskedArray[_ShapeType, _DType_co]):
    def __new__(
        cls,
        shape,
        dtype=...,
        buf=...,
        offset=...,
        strides=...,
        formats=...,
        names=...,
        titles=...,
        byteorder=...,
        aligned=...,
        mask=...,
        hard_mask=...,
        fill_value=...,
        keep_mask=...,
        copy=...,
        **options,
    ): ...
    _mask: Any
    _fill_value: Any
    @property
    def _data(self): ...
    @property
    def _fieldmask(self): ...
    def __array_finalize__(self, obj): ...
    def __len__(self): ...
    def __getattribute__(self, attr): ...
    def __setattr__(self, attr, val): ...
    def __getitem__(self, indx): ...
    def __setitem__(self, indx, value): ...
    def view(self, dtype=..., type=...): ...
    def harden_mask(self): ...
    def soften_mask(self): ...
    def copy(self): ...
    def tolist(self, fill_value=...): ...
    def __reduce__(self): ...

mrecarray = MaskedRecords

def fromarrays(
    arraylist,
    dtype=...,
    shape=...,
    formats=...,
    names=...,
    titles=...,
    aligned=...,
    byteorder=...,
    fill_value=...,
): ...

def fromrecords(
    reclist,
    dtype=...,
    shape=...,
    formats=...,
    names=...,
    titles=...,
    aligned=...,
    byteorder=...,
    fill_value=...,
    mask=...,
): ...

def fromtextfile(
    fname,
    delimiter=...,
    commentchar=...,
    missingchar=...,
    varnames=...,
    vartypes=...,
    # NOTE: deprecated: NumPy 1.22.0, 2021-09-23
    # delimitor=...,
): ...

def addfield(mrecord, newfield, newfieldname=...): ...

Directory Contents

Dirs: 2 × Files: 11

Name Size Perms Modified Actions
tests DIR
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
- drwxr-xr-x 2026-02-06 08:07:28
Edit Download
271.51 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
13.97 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
62.87 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
2.58 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
26.59 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
1.89 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
418 B lrw-r--r-- 2026-01-20 13:01:48
Edit Download
10.00 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
15.29 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
1.37 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
5.92 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).