numpy 2.3.2__cp311-cp311-win32.whl → 2.3.4__cp311-cp311-win32.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of numpy might be problematic. Click here for more details.
- numpy/__config__.py +4 -4
- numpy/__init__.pyi +1101 -340
- numpy/_core/_multiarray_tests.cp311-win32.lib +0 -0
- numpy/_core/_multiarray_tests.cp311-win32.pyd +0 -0
- numpy/_core/_multiarray_umath.cp311-win32.lib +0 -0
- numpy/_core/_multiarray_umath.cp311-win32.pyd +0 -0
- numpy/_core/_operand_flag_tests.cp311-win32.lib +0 -0
- numpy/_core/_operand_flag_tests.cp311-win32.pyd +0 -0
- numpy/_core/_rational_tests.cp311-win32.lib +0 -0
- numpy/_core/_rational_tests.cp311-win32.pyd +0 -0
- numpy/_core/_simd.cp311-win32.lib +0 -0
- numpy/_core/_simd.cp311-win32.pyd +0 -0
- numpy/_core/_struct_ufunc_tests.cp311-win32.lib +0 -0
- numpy/_core/_struct_ufunc_tests.cp311-win32.pyd +0 -0
- numpy/_core/_ufunc_config.py +2 -0
- numpy/_core/_ufunc_config.pyi +52 -6
- numpy/_core/_umath_tests.cp311-win32.lib +0 -0
- numpy/_core/_umath_tests.cp311-win32.pyd +0 -0
- numpy/_core/lib/npymath.lib +0 -0
- numpy/_core/lib/pkgconfig/numpy.pc +1 -1
- numpy/_core/numerictypes.py +1 -1
- numpy/_core/tests/test_api.py +34 -1
- numpy/_core/tests/test_datetime.py +24 -0
- numpy/_core/tests/test_numerictypes.py +29 -0
- numpy/_core/tests/test_stringdtype.py +23 -16
- numpy/_core/tests/test_strings.py +15 -0
- numpy/_core/tests/test_umath.py +12 -0
- numpy/distutils/__pycache__/conv_template.cpython-311.pyc +0 -0
- numpy/exceptions.pyi +2 -0
- numpy/fft/_pocketfft_umath.cp311-win32.lib +0 -0
- numpy/fft/_pocketfft_umath.cp311-win32.pyd +0 -0
- numpy/lib/_arraysetops_impl.pyi +24 -0
- numpy/lib/_histograms_impl.pyi +8 -8
- numpy/lib/_index_tricks_impl.pyi +12 -0
- numpy/lib/_polynomial_impl.pyi +10 -8
- numpy/lib/mixins.pyi +2 -0
- numpy/lib/tests/test_index_tricks.py +5 -0
- numpy/linalg/_linalg.py +1 -0
- numpy/linalg/_linalg.pyi +32 -39
- numpy/linalg/_umath_linalg.cp311-win32.lib +0 -0
- numpy/linalg/_umath_linalg.cp311-win32.pyd +0 -0
- numpy/linalg/lapack_lite.cp311-win32.lib +0 -0
- numpy/linalg/lapack_lite.cp311-win32.pyd +0 -0
- numpy/linalg/tests/test_linalg.py +14 -1
- numpy/ma/extras.pyi +4 -0
- numpy/random/_bounded_integers.cp311-win32.lib +0 -0
- numpy/random/_bounded_integers.cp311-win32.pyd +0 -0
- numpy/random/_common.cp311-win32.lib +0 -0
- numpy/random/_common.cp311-win32.pyd +0 -0
- numpy/random/_generator.cp311-win32.lib +0 -0
- numpy/random/_generator.cp311-win32.pyd +0 -0
- numpy/random/_mt19937.cp311-win32.lib +0 -0
- numpy/random/_mt19937.cp311-win32.pyd +0 -0
- numpy/random/_pcg64.cp311-win32.lib +0 -0
- numpy/random/_pcg64.cp311-win32.pyd +0 -0
- numpy/random/_philox.cp311-win32.lib +0 -0
- numpy/random/_philox.cp311-win32.pyd +0 -0
- numpy/random/_sfc64.cp311-win32.lib +0 -0
- numpy/random/_sfc64.cp311-win32.pyd +0 -0
- numpy/random/bit_generator.cp311-win32.lib +0 -0
- numpy/random/bit_generator.cp311-win32.pyd +0 -0
- numpy/random/lib/npyrandom.lib +0 -0
- numpy/random/mtrand.cp311-win32.lib +0 -0
- numpy/random/mtrand.cp311-win32.pyd +0 -0
- numpy/random/tests/test_generator_mt19937.py +5 -0
- numpy/testing/_private/extbuild.pyi +3 -3
- numpy/testing/_private/utils.pyi +1 -1
- numpy/tests/test_configtool.py +1 -1
- numpy/typing/tests/data/fail/arithmetic.pyi +1 -1
- numpy/typing/tests/data/fail/bitwise_ops.pyi +4 -4
- numpy/typing/tests/data/fail/scalars.pyi +6 -6
- numpy/typing/tests/data/reveal/arithmetic.pyi +29 -29
- numpy/typing/tests/data/reveal/array_constructors.pyi +5 -5
- numpy/typing/tests/data/reveal/bitwise_ops.pyi +10 -11
- numpy/typing/tests/data/reveal/linalg.pyi +6 -6
- numpy/typing/tests/data/reveal/mod.pyi +18 -19
- numpy/version.py +2 -2
- {numpy-2.3.2.dist-info → numpy-2.3.4.dist-info}/LICENSE.txt +881 -881
- {numpy-2.3.2.dist-info → numpy-2.3.4.dist-info}/METADATA +1 -1
- {numpy-2.3.2.dist-info → numpy-2.3.4.dist-info}/RECORD +82 -83
- numpy/_typing/_callable.pyi +0 -366
- {numpy-2.3.2.dist-info → numpy-2.3.4.dist-info}/WHEEL +0 -0
- {numpy-2.3.2.dist-info → numpy-2.3.4.dist-info}/entry_points.txt +0 -0
|
@@ -43,9 +43,9 @@ assert_type(np.linalg.cholesky(AR_i8), npt.NDArray[np.float64])
|
|
|
43
43
|
assert_type(np.linalg.cholesky(AR_f8), npt.NDArray[np.floating])
|
|
44
44
|
assert_type(np.linalg.cholesky(AR_c16), npt.NDArray[np.complexfloating])
|
|
45
45
|
|
|
46
|
-
assert_type(np.linalg.outer(AR_i8, AR_i8), npt.NDArray[np.
|
|
47
|
-
assert_type(np.linalg.outer(AR_f8, AR_f8), npt.NDArray[np.
|
|
48
|
-
assert_type(np.linalg.outer(AR_c16, AR_c16), npt.NDArray[np.
|
|
46
|
+
assert_type(np.linalg.outer(AR_i8, AR_i8), npt.NDArray[np.int64])
|
|
47
|
+
assert_type(np.linalg.outer(AR_f8, AR_f8), npt.NDArray[np.float64])
|
|
48
|
+
assert_type(np.linalg.outer(AR_c16, AR_c16), npt.NDArray[np.complex128])
|
|
49
49
|
assert_type(np.linalg.outer(AR_b, AR_b), npt.NDArray[np.bool])
|
|
50
50
|
assert_type(np.linalg.outer(AR_O, AR_O), npt.NDArray[np.object_])
|
|
51
51
|
assert_type(np.linalg.outer(AR_i8, AR_m), npt.NDArray[np.timedelta64])
|
|
@@ -127,6 +127,6 @@ assert_type(np.linalg.cross(AR_i8, AR_i8), npt.NDArray[np.signedinteger])
|
|
|
127
127
|
assert_type(np.linalg.cross(AR_f8, AR_f8), npt.NDArray[np.floating])
|
|
128
128
|
assert_type(np.linalg.cross(AR_c16, AR_c16), npt.NDArray[np.complexfloating])
|
|
129
129
|
|
|
130
|
-
assert_type(np.linalg.matmul(AR_i8, AR_i8), npt.NDArray[np.
|
|
131
|
-
assert_type(np.linalg.matmul(AR_f8, AR_f8), npt.NDArray[np.
|
|
132
|
-
assert_type(np.linalg.matmul(AR_c16, AR_c16), npt.NDArray[np.
|
|
130
|
+
assert_type(np.linalg.matmul(AR_i8, AR_i8), npt.NDArray[np.int64])
|
|
131
|
+
assert_type(np.linalg.matmul(AR_f8, AR_f8), npt.NDArray[np.float64])
|
|
132
|
+
assert_type(np.linalg.matmul(AR_c16, AR_c16), npt.NDArray[np.complex128])
|
|
@@ -4,7 +4,6 @@ from typing import assert_type
|
|
|
4
4
|
|
|
5
5
|
import numpy as np
|
|
6
6
|
import numpy.typing as npt
|
|
7
|
-
from numpy._typing import _64Bit
|
|
8
7
|
|
|
9
8
|
f8: np.float64
|
|
10
9
|
i8: np.int64
|
|
@@ -109,51 +108,51 @@ assert_type(divmod(AR_b, b_), tuple[npt.NDArray[np.int8], npt.NDArray[np.int8]])
|
|
|
109
108
|
|
|
110
109
|
assert_type(i8 % b, np.int64)
|
|
111
110
|
assert_type(i8 % i8, np.int64)
|
|
112
|
-
assert_type(i8 % f, np.float64
|
|
113
|
-
assert_type(i8 % f8, np.float64
|
|
114
|
-
assert_type(i4 % i8, np.
|
|
115
|
-
assert_type(i4 % f8, np.float64
|
|
111
|
+
assert_type(i8 % f, np.float64)
|
|
112
|
+
assert_type(i8 % f8, np.float64)
|
|
113
|
+
assert_type(i4 % i8, np.signedinteger)
|
|
114
|
+
assert_type(i4 % f8, np.float64)
|
|
116
115
|
assert_type(i4 % i4, np.int32)
|
|
117
|
-
assert_type(i4 % f4, np.
|
|
116
|
+
assert_type(i4 % f4, np.floating)
|
|
118
117
|
assert_type(i8 % AR_b, npt.NDArray[np.int64])
|
|
119
118
|
|
|
120
119
|
assert_type(divmod(i8, b), tuple[np.int64, np.int64])
|
|
121
|
-
assert_type(divmod(i8, i4), tuple[np.
|
|
120
|
+
assert_type(divmod(i8, i4), tuple[np.signedinteger, np.signedinteger])
|
|
122
121
|
assert_type(divmod(i8, i8), tuple[np.int64, np.int64])
|
|
123
122
|
# workarounds for https://github.com/microsoft/pyright/issues/9663
|
|
124
|
-
assert_type(i8.__divmod__(f), tuple[np.
|
|
125
|
-
assert_type(i8.__divmod__(f8), tuple[np.
|
|
126
|
-
assert_type(divmod(i8, f4), tuple[np.floating
|
|
123
|
+
assert_type(i8.__divmod__(f), tuple[np.float64, np.float64])
|
|
124
|
+
assert_type(i8.__divmod__(f8), tuple[np.float64, np.float64])
|
|
125
|
+
assert_type(divmod(i8, f4), tuple[np.floating, np.floating])
|
|
127
126
|
assert_type(divmod(i4, i4), tuple[np.int32, np.int32])
|
|
128
|
-
assert_type(divmod(i4, f4), tuple[np.
|
|
127
|
+
assert_type(divmod(i4, f4), tuple[np.floating, np.floating])
|
|
129
128
|
assert_type(divmod(i8, AR_b), tuple[npt.NDArray[np.int64], npt.NDArray[np.int64]])
|
|
130
129
|
|
|
131
130
|
assert_type(b % i8, np.int64)
|
|
132
|
-
assert_type(f % i8, np.float64
|
|
131
|
+
assert_type(f % i8, np.float64)
|
|
133
132
|
assert_type(i8 % i8, np.int64)
|
|
134
133
|
assert_type(f8 % i8, np.float64)
|
|
135
|
-
assert_type(i8 % i4, np.
|
|
134
|
+
assert_type(i8 % i4, np.signedinteger)
|
|
136
135
|
assert_type(f8 % i4, np.float64)
|
|
137
136
|
assert_type(i4 % i4, np.int32)
|
|
138
|
-
assert_type(f4 % i4, np.
|
|
137
|
+
assert_type(f4 % i4, np.floating)
|
|
139
138
|
assert_type(AR_b % i8, npt.NDArray[np.int64])
|
|
140
139
|
|
|
141
140
|
assert_type(divmod(b, i8), tuple[np.int64, np.int64])
|
|
142
|
-
assert_type(divmod(f, i8), tuple[np.
|
|
141
|
+
assert_type(divmod(f, i8), tuple[np.float64, np.float64])
|
|
143
142
|
assert_type(divmod(i8, i8), tuple[np.int64, np.int64])
|
|
144
143
|
assert_type(divmod(f8, i8), tuple[np.float64, np.float64])
|
|
145
|
-
assert_type(divmod(i4, i8), tuple[np.
|
|
144
|
+
assert_type(divmod(i4, i8), tuple[np.signedinteger, np.signedinteger])
|
|
146
145
|
assert_type(divmod(i4, i4), tuple[np.int32, np.int32])
|
|
147
146
|
# workarounds for https://github.com/microsoft/pyright/issues/9663
|
|
148
|
-
assert_type(f4.__divmod__(i8), tuple[np.floating
|
|
149
|
-
assert_type(f4.__divmod__(i4), tuple[np.
|
|
147
|
+
assert_type(f4.__divmod__(i8), tuple[np.floating, np.floating])
|
|
148
|
+
assert_type(f4.__divmod__(i4), tuple[np.floating, np.floating])
|
|
150
149
|
assert_type(AR_b.__divmod__(i8), tuple[npt.NDArray[np.int64], npt.NDArray[np.int64]])
|
|
151
150
|
|
|
152
151
|
# float
|
|
153
152
|
|
|
154
153
|
assert_type(f8 % b, np.float64)
|
|
155
154
|
assert_type(f8 % f, np.float64)
|
|
156
|
-
assert_type(i8 % f4, np.floating
|
|
155
|
+
assert_type(i8 % f4, np.floating)
|
|
157
156
|
assert_type(f4 % f4, np.float32)
|
|
158
157
|
assert_type(f8 % AR_b, npt.NDArray[np.float64])
|
|
159
158
|
|
numpy/version.py
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"""
|
|
3
3
|
Module to expose more detailed version info for the installed `numpy`
|
|
4
4
|
"""
|
|
5
|
-
version = "2.3.
|
|
5
|
+
version = "2.3.4"
|
|
6
6
|
__version__ = version
|
|
7
7
|
full_version = version
|
|
8
8
|
|
|
9
|
-
git_revision = "
|
|
9
|
+
git_revision = "1458b9e79d1a5755eae9adcb346758f449b6b430"
|
|
10
10
|
release = 'dev' not in version and '+' not in version
|
|
11
11
|
short_version = version.split("+")[0]
|