Skip to content

numpy 2.4.3

Version history | Download JSON

  • PyPI https://pypi.org/project/numpy/
    Repository https://github.com/numpy/numpy

  • py.typed

  • Coverage


    %%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%%
    pie title
        "Typed" : 4919
        "Any" : 242
        "Untyped" : 286
    • 94.7% coverage
    • 90.3% coverage (strict)
    • 5447 typable
      • 4919 typed
      • 286 untyped
      • 242 Any
  • Typables


    %%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%%
    pie title
        "functions" : 3477
        "classes" : 1320
        "other" : 550
    • 892 functions (+1486 overloads)
      • 2585 parameters
    • 112 classes
      • 510 methods (+34 overloads)
        • 566 parameters
      • 224 properties
    • 96 modules
      • 550 attrs

Modules

Module Coverage Coverage (strict) Typables Ignores
numpy.__config__ 100.0% 100.0% 2 0
numpy 100.0% 95.1% 650 272
numpy._array_api_info 100.0% 100.0% 6 0
numpy._core._asarray 100.0% 100.0% 5 0
numpy._core._type_aliases 100.0% 100.0% 1 0
numpy._core._ufunc_config 100.0% 100.0% 27 0
numpy._core.arrayprint 100.0% 100.0% 70 0
numpy._core.defchararray 100.0% 99.0% 201 12
numpy._core.einsumfunc 100.0% 84.6% 13 0
numpy._core.fromnumeric 100.0% 92.2% 217 0
numpy._core.function_base 100.0% 100.0% 29 0
numpy._core.getlimits 100.0% 100.0% 31 0
numpy._core.multiarray 100.0% 95.5% 199 1
numpy._core.numeric 100.0% 98.4% 127 0
numpy._core.numerictypes 100.0% 100.0% 8 0
numpy._core.records 100.0% 97.4% 76 1
numpy._core.shape_base 100.0% 100.0% 31 0
numpy._core.strings 100.0% 100.0% 147 0
numpy._typing 100.0% 100.0% 2 0
numpy._typing._array_like 100.0% 100.0% 1 0
numpy._typing._extended_precision 100.0% 100.0% 4 0
numpy._typing._nbit_base 0.0% 0.0% 0 0
numpy.ctypeslib 0.0% 0.0% 0 0
numpy.ctypeslib._ctypeslib 100.0% 93.3% 15 5
numpy.dtypes 100.0% 100.0% 90 38
numpy.exceptions 100.0% 100.0% 2 0
numpy.f2py 100.0% 100.0% 1 0
numpy.f2py.auxfuncs 100.0% 100.0% 199 0
numpy.f2py.capi_maps 100.0% 100.0% 34 0
numpy.f2py.cb_rules 100.0% 100.0% 10 0
numpy.f2py.cfuncs 100.0% 100.0% 20 0
numpy.f2py.common_rules 100.0% 100.0% 6 0
numpy.f2py.crackfortran 100.0% 100.0% 267 0
numpy.f2py.diagnose 100.0% 100.0% 1 0
numpy.f2py.f2py2e 100.0% 100.0% 38 0
numpy.f2py.f90mod_rules 100.0% 100.0% 10 0
numpy.f2py.func2subr 100.0% 100.0% 15 0
numpy.f2py.rules 100.0% 100.0% 20 0
numpy.f2py.symbolic 100.0% 100.0% 54 0
numpy.f2py.use_rules 100.0% 100.0% 11 0
numpy.fft._helper 100.0% 100.0% 14 0
numpy.fft._pocketfft 100.0% 100.0% 84 0
numpy.lib._array_utils_impl 100.0% 100.0% 2 0
numpy.lib._arraypad_impl 100.0% 88.9% 9 0
numpy.lib._arraysetops_impl 100.0% 100.0% 42 0
numpy.lib._arrayterator_impl 100.0% 100.0% 13 5
numpy.lib._datasource 100.0% 100.0% 12 0
numpy.lib._format_impl 100.0% 100.0% 50 0
numpy.lib._function_base_impl 100.0% 94.2% 172 0
numpy.lib._histograms_impl 100.0% 100.0% 17 0
numpy.lib._index_tricks_impl 100.0% 100.0% 20 1
numpy.lib._npyio_impl 100.0% 97.0% 100 1
numpy.lib._polynomial_impl 100.0% 100.0% 31 0
numpy.lib._scimath_impl 100.0% 55.0% 20 0
numpy.lib._shape_base_impl 100.0% 96.2% 53 4
numpy.lib._stride_tricks_impl 100.0% 100.0% 21 0
numpy.lib._twodim_base_impl 100.0% 100.0% 59 0
numpy.lib._type_check_impl 100.0% 96.8% 31 5
numpy.lib._ufunclike_impl 100.0% 100.0% 9 0
numpy.lib._user_array_impl 100.0% 87.3% 79 5
numpy.lib._utils_impl 100.0% 100.0% 9 0
numpy.lib._version 100.0% 100.0% 21 2
numpy.lib.introspect 100.0% 100.0% 3 0
numpy.lib.mixins 100.0% 1.9% 103 0
numpy.lib.recfunctions 100.0% 100.0% 98 0
numpy.linalg 0.0% 0.0% 0 0
numpy.linalg._linalg 100.0% 91.8% 97 0
numpy.linalg.lapack_lite 100.0% 100.0% 72 0
numpy.ma 0.0% 0.0% 0 0
numpy.ma.core 84.3% 80.2% 636 114
numpy.ma.extras 26.1% 25.5% 153 4
numpy.ma.mrecords 2.7% 0.0% 75 0
numpy.ma.testutils 100.0% 100.0% 63 0
numpy.matlib 100.0% 100.0% 31 0
numpy.matrixlib.defmatrix 100.0% 100.0% 35 38
numpy.polynomial 100.0% 100.0% 2 0
numpy.polynomial.chebyshev 100.0% 100.0% 40 3
numpy.polynomial.hermite 100.0% 100.0% 32 3
numpy.polynomial.hermite_e 100.0% 100.0% 32 3
numpy.polynomial.laguerre 100.0% 100.0% 32 3
numpy.polynomial.legendre 100.0% 100.0% 32 3
numpy.polynomial.polynomial 100.0% 100.0% 32 3
numpy.polynomial.polyutils 100.0% 100.0% 20 0
numpy.random 0.0% 0.0% 0 0
numpy.random._generator 100.0% 100.0% 38 29
numpy.random._mt19937 100.0% 100.0% 8 1
numpy.random._pcg64 100.0% 100.0% 16 2
numpy.random._philox 100.0% 100.0% 10 1
numpy.random._sfc64 100.0% 100.0% 4 1
numpy.random.bit_generator 100.0% 100.0% 29 0
numpy.random.mtrand 100.0% 100.0% 33 35
numpy.testing 0.0% 0.0% 0 0
numpy.testing._private.utils 100.0% 99.4% 181 1
numpy.testing.overrides 100.0% 100.0% 6 0
numpy.testing.print_coercion_tables 100.0% 100.0% 20 0
numpy.version 100.0% 100.0% 6 0

Incomplete Annotations

numpy (0 missing, 32 any)

Symbol Typable Typed Any
meth dtype.class_getitem 2 2 1
meth dtype.eq 2 2 1
meth dtype.ne 2 2 1
meth number.class_getitem 2 2 1
meth number.add 2 2 1
meth number.radd 2 2 1
meth number.sub 2 2 1
meth number.rsub 2 2 1
meth number.mul 2 2 1
meth number.rmul 2 2 1
meth number.pow 3 3 1
meth number.rpow 3 3 1
meth number.truediv 2 2 1
meth number.rtruediv 2 2 1
meth ndarray.class_getitem 2 2 1
meth ndarray.array_ufunc 5 5 3
meth ndarray.array_function 5 5 1
meth poly1d.getitem 2 2 1
meth poly1d.setitem 3 3 1
meth generic.new 3 3 2
meth object_.call 3 3 1
meth memmap.array_wrap 4 4 1
meth ufunc.call 3 3 3
meth ufunc.reduce 6 6 2
meth ufunc.outer 4 4 1
prop ufunc.identity 1 1 1

numpy._core.defchararray (0 missing, 2 any)

Symbol Typable Typed Any
meth chararray.mod 2 2 1
func mod 3 3 1

numpy._core.einsumfunc (0 missing, 2 any)

Symbol Typable Typed Any
func einsum 8 8 2

numpy._core.fromnumeric (0 missing, 17 any)

Symbol Typable Typed Any
func std 10 10 1
func ptp 5 5 1
func argmax 5 5 1
func amax 7 7 1
func any 6 6 1
func prod 8 8 1
func var 10 10 1
func take 6 6 1
func sum 8 8 1
func clip 9 9 1
func mean 7 7 1
func all 6 6 1
func argmin 5 5 1
func amin 7 7 1
func choose 5 5 1
func trace 7 7 1
func around 4 4 1

numpy._core.multiarray (0 missing, 9 any)

Symbol Typable Typed Any
func array 9 9 1
func empty_like 7 7 1
func inner 3 3 1
func dot 4 4 1
func asanyarray 7 7 1
func vdot 3 3 1
func asarray 7 7 1
func asfortranarray 4 4 1
func ascontiguousarray 4 4 1

numpy._core.numeric (0 missing, 2 any)

Symbol Typable Typed Any
func count_nonzero 4 4 1
func full 7 7 1

numpy._core.records (0 missing, 2 any)

Symbol Typable Typed Any
meth recarray.getattribute 2 2 1
meth record.getattribute 2 2 1

numpy.ctypeslib._ctypeslib (0 missing, 1 any)

Symbol Typable Typed Any
func as_ctypes 2 2 1

numpy.lib._arraypad_impl (0 missing, 1 any)

Symbol Typable Typed Any
func pad 9 9 1

numpy.lib._function_base_impl (0 missing, 10 any)

Symbol Typable Typed Any
func gradient 5 5 1
func quantile 9 9 1
meth vectorize.call 3 3 3
func trapezoid 5 5 1
func percentile 9 9 1
func median 6 6 1
func corrcoef 5 5 1
func average 6 6 1

numpy.lib._npyio_impl (0 missing, 3 any)

Symbol Typable Typed Any
func load 7 7 1
func genfromtxt 26 26 2

numpy.lib._scimath_impl (0 missing, 9 any)

Symbol Typable Typed Any
func arctanh 2 2 1
func log2 2 2 1
func log10 2 2 1
func arcsin 2 2 1
func log 2 2 1
func arccos 2 2 1
func power 3 3 1
func logn 3 3 1
func sqrt 2 2 1

numpy.lib._shape_base_impl (0 missing, 2 any)

Symbol Typable Typed Any
func kron 3 3 2

numpy.lib._type_check_impl (0 missing, 1 any)

Symbol Typable Typed Any
func nan_to_num 6 6 1

numpy.lib._user_array_impl (0 missing, 10 any)

Symbol Typable Typed Any
meth container.add 2 2 1
meth container.radd 2 2 1
meth container.sub 2 2 1
meth container.rsub 2 2 1
meth container.mul 2 2 1
meth container.rmul 2 2 1
meth container.mod 2 2 1
meth container.rmod 2 2 1
meth container.pow 2 2 1
meth container.rpow 2 2 1

numpy.lib.mixins (0 missing, 101 any)

Symbol Typable Typed Any
meth NDArrayOperatorsMixin.array_ufunc 5 5 3
meth NDArrayOperatorsMixin.lt 2 2 2
meth NDArrayOperatorsMixin.le 2 2 2
meth NDArrayOperatorsMixin.eq 2 2 2
meth NDArrayOperatorsMixin.ne 2 2 2
meth NDArrayOperatorsMixin.gt 2 2 2
meth NDArrayOperatorsMixin.ge 2 2 2
meth NDArrayOperatorsMixin.add 2 2 2
meth NDArrayOperatorsMixin.radd 2 2 2
meth NDArrayOperatorsMixin.iadd 2 2 2
meth NDArrayOperatorsMixin.sub 2 2 2
meth NDArrayOperatorsMixin.rsub 2 2 2
meth NDArrayOperatorsMixin.isub 2 2 2
meth NDArrayOperatorsMixin.mul 2 2 2
meth NDArrayOperatorsMixin.rmul 2 2 2
meth NDArrayOperatorsMixin.imul 2 2 2
meth NDArrayOperatorsMixin.matmul 2 2 2
meth NDArrayOperatorsMixin.rmatmul 2 2 2
meth NDArrayOperatorsMixin.imatmul 2 2 2
meth NDArrayOperatorsMixin.truediv 2 2 2
meth NDArrayOperatorsMixin.rtruediv 2 2 2
meth NDArrayOperatorsMixin.itruediv 2 2 2
meth NDArrayOperatorsMixin.floordiv 2 2 2
meth NDArrayOperatorsMixin.rfloordiv 2 2 2
meth NDArrayOperatorsMixin.ifloordiv 2 2 2
meth NDArrayOperatorsMixin.mod 2 2 2
meth NDArrayOperatorsMixin.rmod 2 2 2
meth NDArrayOperatorsMixin.imod 2 2 2
meth NDArrayOperatorsMixin.divmod 2 2 2
meth NDArrayOperatorsMixin.rdivmod 2 2 2
meth NDArrayOperatorsMixin.pow 2 2 2
meth NDArrayOperatorsMixin.rpow 2 2 2
meth NDArrayOperatorsMixin.ipow 2 2 2
meth NDArrayOperatorsMixin.lshift 2 2 2
meth NDArrayOperatorsMixin.rlshift 2 2 2
meth NDArrayOperatorsMixin.ilshift 2 2 2
meth NDArrayOperatorsMixin.rshift 2 2 2
meth NDArrayOperatorsMixin.rrshift 2 2 2
meth NDArrayOperatorsMixin.irshift 2 2 2
meth NDArrayOperatorsMixin.and 2 2 2
meth NDArrayOperatorsMixin.rand 2 2 2
meth NDArrayOperatorsMixin.iand 2 2 2
meth NDArrayOperatorsMixin.xor 2 2 2
meth NDArrayOperatorsMixin.rxor 2 2 2
meth NDArrayOperatorsMixin.ixor 2 2 2
meth NDArrayOperatorsMixin.or 2 2 2
meth NDArrayOperatorsMixin.ror 2 2 2
meth NDArrayOperatorsMixin.ior 2 2 2
meth NDArrayOperatorsMixin.neg 1 1 1
meth NDArrayOperatorsMixin.pos 1 1 1
meth NDArrayOperatorsMixin.abs 1 1 1
meth NDArrayOperatorsMixin.invert 1 1 1

numpy.linalg._linalg (0 missing, 8 any)

Symbol Typable Typed Any
func matrix_norm 4 4 1
func matrix_rank 5 5 1
func det 2 2 1
func trace 4 4 1
func norm 5 5 1
func multi_dot 3 3 1
func cond 3 3 1
func vector_norm 5 5 1

numpy.ma.core (100 missing, 26 any)

Symbol Typable Typed Any
func std 8 8 1
func ptp 6 6 1
func dot 5 0 0
func correlate 5 0 0
func product 6 6 1
func reshape 4 0 0
func right_shift 3 0 0
func mean 6 6 1
func default_fill_value 2 2 1
func transpose 3 0 0
func shape 2 0 0
func fromflex 2 0 0
meth mvoid.new 8 0 0
meth mvoid.getitem 2 0 0
meth mvoid.setitem 3 0 0
meth mvoid.iter 1 0 0
meth mvoid.len 1 0 0
meth mvoid.filled 2 0 0
meth mvoid.tolist 1 0 0
func min 6 6 1
func max 6 6 1
func sometrue 4 4 1
func sum 6 6 1
func argmax 6 6 1
func where 4 0 0
func prod 6 6 1
func append 4 0 0
func minimum_fill_value 2 2 1
func resize 3 0 0
func var 8 8 1
func diff 6 0 0
func convolve 5 0 0
func empty_like 7 7 1
func round_ 4 0 0
func argsort 8 0 0
func take 6 6 1
func power 4 0 0
meth MaskedArray.eq 2 2 2
meth MaskedArray.ne 2 2 2
meth MaskedArray.product 5 5 1
func argmin 6 6 1
func left_shift 3 0 0
func choose 5 0 0
func maximum_fill_value 2 2 1
func concatenate 3 0 0
func trace 7 7 1
func common_fill_value 3 3 1
func diag 3 0 0
func outer 3 0 0
func alltrue 4 4 1
func clip 11 11 1
func inner 3 0 0

numpy.ma.extras (113 missing, 1 any)

Symbol Typable Typed Any
func compress_nd 3 0 0
func masked_all_like 2 0 0
func isin 5 0 0
func notmasked_contiguous 3 0 0
func apply_along_axis 6 0 0
func setxor1d 4 0 0
func mask_rows 3 0 0
func polyfit 8 0 0
func ediff1d 4 0 0
func masked_all 3 0 0
func notmasked_edges 3 0 0
func union1d 3 0 0
func flatnotmasked_contiguous 2 0 0
func in1d 5 0 0
func ndenumerate 3 0 0
func corrcoef 5 0 0
func count_masked 3 0 0
func compress_cols 2 0 0
func vander 3 0 0
func apply_over_axes 4 0 0
func mask_rowcols 3 3 1
func clump_masked 2 0 0
func flatnotmasked_edges 2 0 0
func setdiff1d 4 0 0
func clump_unmasked 2 0 0
func compress_rows 2 0 0
func cov 7 0 0
func unique 4 0 0
func intersect1d 4 0 0
func median 6 0 0
func mask_cols 3 0 0
func compress_rowcols 3 0 0

numpy.ma.mrecords (73 missing, 2 any)

Symbol Typable Typed Any
meth MaskedRecords.new 17 0 0
meth MaskedRecords.array_finalize 2 0 0
meth MaskedRecords.len 1 0 0
meth MaskedRecords.getattribute 2 0 0
meth MaskedRecords.setattr 3 0 0
meth MaskedRecords.getitem 2 0 0
meth MaskedRecords.setitem 3 0 0
meth MaskedRecords.view 3 0 0
meth MaskedRecords.harden_mask 1 0 0
meth MaskedRecords.soften_mask 1 0 0
meth MaskedRecords.copy 1 0 0
meth MaskedRecords.tolist 2 0 0
meth MaskedRecords.reduce 1 0 0
prop MaskedRecords._data 1 0 0
prop MaskedRecords._fieldmask 1 0 0
attr MaskedRecords._mask 1 1 1
attr MaskedRecords._fill_value 1 1 1
func fromtextfile 7 0 0
func fromarrays 10 0 0
func fromrecords 11 0 0
func addfield 4 0 0

numpy.testing._private.utils (0 missing, 1 any)

Symbol Typable Typed Any
func runstring 3 3 1

Type-Ignore Comments

Flavor Count
type: ignore[override] 185
type: ignore[overload-overlap] 177
type: ignore[misc] 164
pyright: ignore[reportIncompatibleMethodOverride] 46
type: ignore[overload-cannot-match] 7
type: ignore[assignment] 5
pyright: ignore[reportDeprecated] 3
pyright: ignore[reportIncompatibleVariableOverride] 3
pyright: ignore[reportGeneralTypeIssues] 2
stubdefaulter: ignore[missing-default] 2
pyright: ignore[reportGeneralTypeIssues, reportInvalidTypeArguments] 1
type: ignore[type-var] 1