numpy 2.3.2__cp314-cp314-win_arm64.whl → 2.3.4__cp314-cp314-win_arm64.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.

Files changed (66) hide show
  1. numpy/__config__.py +10 -10
  2. numpy/__init__.py +4 -4
  3. numpy/__init__.pyi +1101 -340
  4. numpy/_core/_multiarray_tests.cp314-win_arm64.pyd +0 -0
  5. numpy/_core/_multiarray_umath.cp314-win_arm64.pyd +0 -0
  6. numpy/_core/_operand_flag_tests.cp314-win_arm64.pyd +0 -0
  7. numpy/_core/_rational_tests.cp314-win_arm64.pyd +0 -0
  8. numpy/_core/_simd.cp314-win_arm64.pyd +0 -0
  9. numpy/_core/_struct_ufunc_tests.cp314-win_arm64.pyd +0 -0
  10. numpy/_core/_ufunc_config.py +2 -0
  11. numpy/_core/_ufunc_config.pyi +52 -6
  12. numpy/_core/_umath_tests.cp314-win_arm64.pyd +0 -0
  13. numpy/_core/lib/{libnpymath.a → npymath.lib} +0 -0
  14. numpy/_core/lib/pkgconfig/numpy.pc +1 -1
  15. numpy/_core/numerictypes.py +1 -1
  16. numpy/_core/tests/test_api.py +34 -1
  17. numpy/_core/tests/test_datetime.py +24 -0
  18. numpy/_core/tests/test_numerictypes.py +29 -0
  19. numpy/_core/tests/test_stringdtype.py +23 -16
  20. numpy/_core/tests/test_strings.py +15 -0
  21. numpy/_core/tests/test_umath.py +12 -0
  22. numpy/exceptions.pyi +2 -0
  23. numpy/fft/_pocketfft_umath.cp314-win_arm64.pyd +0 -0
  24. numpy/lib/_arraysetops_impl.pyi +24 -0
  25. numpy/lib/_histograms_impl.pyi +8 -8
  26. numpy/lib/_index_tricks_impl.pyi +12 -0
  27. numpy/lib/_polynomial_impl.pyi +10 -8
  28. numpy/lib/mixins.pyi +2 -0
  29. numpy/lib/tests/test_index_tricks.py +5 -0
  30. numpy/linalg/_linalg.py +1 -0
  31. numpy/linalg/_linalg.pyi +32 -39
  32. numpy/linalg/_umath_linalg.cp314-win_arm64.pyd +0 -0
  33. numpy/linalg/lapack_lite.cp314-win_arm64.pyd +0 -0
  34. numpy/linalg/tests/test_linalg.py +14 -1
  35. numpy/ma/extras.pyi +4 -0
  36. numpy/random/_bounded_integers.cp314-win_arm64.pyd +0 -0
  37. numpy/random/_common.cp314-win_arm64.pyd +0 -0
  38. numpy/random/_generator.cp314-win_arm64.pyd +0 -0
  39. numpy/random/_mt19937.cp314-win_arm64.pyd +0 -0
  40. numpy/random/_pcg64.cp314-win_arm64.pyd +0 -0
  41. numpy/random/_philox.cp314-win_arm64.pyd +0 -0
  42. numpy/random/_sfc64.cp314-win_arm64.pyd +0 -0
  43. numpy/random/bit_generator.cp314-win_arm64.pyd +0 -0
  44. numpy/random/lib/{libnpyrandom.a → npyrandom.lib} +0 -0
  45. numpy/random/mtrand.cp314-win_arm64.pyd +0 -0
  46. numpy/random/tests/test_generator_mt19937.py +5 -0
  47. numpy/testing/_private/extbuild.pyi +3 -3
  48. numpy/testing/_private/utils.pyi +1 -1
  49. numpy/tests/test_configtool.py +1 -1
  50. numpy/typing/tests/data/fail/arithmetic.pyi +1 -1
  51. numpy/typing/tests/data/fail/bitwise_ops.pyi +4 -4
  52. numpy/typing/tests/data/fail/scalars.pyi +6 -6
  53. numpy/typing/tests/data/reveal/arithmetic.pyi +29 -29
  54. numpy/typing/tests/data/reveal/array_constructors.pyi +5 -5
  55. numpy/typing/tests/data/reveal/bitwise_ops.pyi +10 -11
  56. numpy/typing/tests/data/reveal/linalg.pyi +6 -6
  57. numpy/typing/tests/data/reveal/mod.pyi +18 -19
  58. numpy/version.py +2 -2
  59. numpy-2.3.4.dist-info/DELVEWHEEL +2 -0
  60. {numpy-2.3.2.dist-info → numpy-2.3.4.dist-info}/LICENSE.txt +881 -881
  61. {numpy-2.3.2.dist-info → numpy-2.3.4.dist-info}/METADATA +1 -1
  62. {numpy-2.3.2.dist-info → numpy-2.3.4.dist-info}/RECORD +64 -65
  63. numpy/_typing/_callable.pyi +0 -366
  64. numpy-2.3.2.dist-info/DELVEWHEEL +0 -2
  65. {numpy-2.3.2.dist-info → numpy-2.3.4.dist-info}/WHEEL +0 -0
  66. {numpy-2.3.2.dist-info → numpy-2.3.4.dist-info}/entry_points.txt +0 -0
@@ -1,366 +0,0 @@
1
- """
2
- A module with various ``typing.Protocol`` subclasses that implement
3
- the ``__call__`` magic method.
4
-
5
- See the `Mypy documentation`_ on protocols for more details.
6
-
7
- .. _`Mypy documentation`: https://mypy.readthedocs.io/en/stable/protocols.html#callback-protocols
8
-
9
- """
10
-
11
- from typing import (
12
- Any,
13
- NoReturn,
14
- Protocol,
15
- TypeAlias,
16
- TypeVar,
17
- final,
18
- overload,
19
- type_check_only,
20
- )
21
-
22
- import numpy as np
23
- from numpy import (
24
- complex128,
25
- complexfloating,
26
- float64,
27
- floating,
28
- generic,
29
- int8,
30
- int_,
31
- integer,
32
- number,
33
- signedinteger,
34
- unsignedinteger,
35
- )
36
-
37
- from . import NBitBase
38
- from ._array_like import NDArray
39
- from ._nbit import _NBitInt
40
- from ._nested_sequence import _NestedSequence
41
- from ._scalars import (
42
- _BoolLike_co,
43
- _IntLike_co,
44
- _NumberLike_co,
45
- )
46
-
47
- _T1 = TypeVar("_T1")
48
- _T2 = TypeVar("_T2")
49
- _T1_contra = TypeVar("_T1_contra", contravariant=True)
50
- _T2_contra = TypeVar("_T2_contra", contravariant=True)
51
-
52
- _2Tuple: TypeAlias = tuple[_T1, _T1]
53
-
54
- _NBit1 = TypeVar("_NBit1", bound=NBitBase)
55
- _NBit2 = TypeVar("_NBit2", bound=NBitBase)
56
-
57
- _IntType = TypeVar("_IntType", bound=integer)
58
- _FloatType = TypeVar("_FloatType", bound=floating)
59
- _NumberType = TypeVar("_NumberType", bound=number)
60
- _NumberType_co = TypeVar("_NumberType_co", covariant=True, bound=number)
61
- _GenericType_co = TypeVar("_GenericType_co", covariant=True, bound=generic)
62
-
63
- @type_check_only
64
- class _BoolOp(Protocol[_GenericType_co]):
65
- @overload
66
- def __call__(self, other: _BoolLike_co, /) -> _GenericType_co: ...
67
- @overload # platform dependent
68
- def __call__(self, other: int, /) -> int_: ...
69
- @overload
70
- def __call__(self, other: float, /) -> float64: ...
71
- @overload
72
- def __call__(self, other: complex, /) -> complex128: ...
73
- @overload
74
- def __call__(self, other: _NumberType, /) -> _NumberType: ...
75
-
76
- @type_check_only
77
- class _BoolBitOp(Protocol[_GenericType_co]):
78
- @overload
79
- def __call__(self, other: _BoolLike_co, /) -> _GenericType_co: ...
80
- @overload # platform dependent
81
- def __call__(self, other: int, /) -> int_: ...
82
- @overload
83
- def __call__(self, other: _IntType, /) -> _IntType: ...
84
-
85
- @type_check_only
86
- class _BoolSub(Protocol):
87
- # Note that `other: bool` is absent here
88
- @overload
89
- def __call__(self, other: bool, /) -> NoReturn: ...
90
- @overload # platform dependent
91
- def __call__(self, other: int, /) -> int_: ...
92
- @overload
93
- def __call__(self, other: float, /) -> float64: ...
94
- @overload
95
- def __call__(self, other: complex, /) -> complex128: ...
96
- @overload
97
- def __call__(self, other: _NumberType, /) -> _NumberType: ...
98
-
99
- @type_check_only
100
- class _BoolTrueDiv(Protocol):
101
- @overload
102
- def __call__(self, other: float | _IntLike_co, /) -> float64: ...
103
- @overload
104
- def __call__(self, other: complex, /) -> complex128: ...
105
- @overload
106
- def __call__(self, other: _NumberType, /) -> _NumberType: ...
107
-
108
- @type_check_only
109
- class _BoolMod(Protocol):
110
- @overload
111
- def __call__(self, other: _BoolLike_co, /) -> int8: ...
112
- @overload # platform dependent
113
- def __call__(self, other: int, /) -> int_: ...
114
- @overload
115
- def __call__(self, other: float, /) -> float64: ...
116
- @overload
117
- def __call__(self, other: _IntType, /) -> _IntType: ...
118
- @overload
119
- def __call__(self, other: _FloatType, /) -> _FloatType: ...
120
-
121
- @type_check_only
122
- class _BoolDivMod(Protocol):
123
- @overload
124
- def __call__(self, other: _BoolLike_co, /) -> _2Tuple[int8]: ...
125
- @overload # platform dependent
126
- def __call__(self, other: int, /) -> _2Tuple[int_]: ...
127
- @overload
128
- def __call__(self, other: float, /) -> _2Tuple[np.float64]: ...
129
- @overload
130
- def __call__(self, other: _IntType, /) -> _2Tuple[_IntType]: ...
131
- @overload
132
- def __call__(self, other: _FloatType, /) -> _2Tuple[_FloatType]: ...
133
-
134
- @type_check_only
135
- class _IntTrueDiv(Protocol[_NBit1]):
136
- @overload
137
- def __call__(self, other: bool, /) -> floating[_NBit1]: ...
138
- @overload
139
- def __call__(self, other: int, /) -> floating[_NBit1] | floating[_NBitInt]: ...
140
- @overload
141
- def __call__(self, other: float, /) -> floating[_NBit1] | float64: ...
142
- @overload
143
- def __call__(
144
- self, other: complex, /
145
- ) -> complexfloating[_NBit1, _NBit1] | complex128: ...
146
- @overload
147
- def __call__(
148
- self, other: integer[_NBit2], /
149
- ) -> floating[_NBit1] | floating[_NBit2]: ...
150
-
151
- @type_check_only
152
- class _UnsignedIntOp(Protocol[_NBit1]):
153
- # NOTE: `uint64 + signedinteger -> float64`
154
- @overload
155
- def __call__(self, other: int, /) -> unsignedinteger[_NBit1]: ...
156
- @overload
157
- def __call__(self, other: float, /) -> float64: ...
158
- @overload
159
- def __call__(self, other: complex, /) -> complex128: ...
160
- @overload
161
- def __call__(self, other: unsignedinteger[_NBit2], /) -> unsignedinteger[_NBit1] | unsignedinteger[_NBit2]: ...
162
- @overload
163
- def __call__(self, other: signedinteger, /) -> Any: ...
164
-
165
- @type_check_only
166
- class _UnsignedIntBitOp(Protocol[_NBit1]):
167
- @overload
168
- def __call__(self, other: bool, /) -> unsignedinteger[_NBit1]: ...
169
- @overload
170
- def __call__(self, other: int, /) -> signedinteger: ...
171
- @overload
172
- def __call__(self, other: signedinteger, /) -> signedinteger: ...
173
- @overload
174
- def __call__(
175
- self, other: unsignedinteger[_NBit2], /
176
- ) -> unsignedinteger[_NBit1] | unsignedinteger[_NBit2]: ...
177
-
178
- @type_check_only
179
- class _UnsignedIntMod(Protocol[_NBit1]):
180
- @overload
181
- def __call__(self, other: bool, /) -> unsignedinteger[_NBit1]: ...
182
- @overload
183
- def __call__(self, other: int | signedinteger, /) -> Any: ...
184
- @overload
185
- def __call__(self, other: float, /) -> floating[_NBit1] | float64: ...
186
- @overload
187
- def __call__(
188
- self, other: unsignedinteger[_NBit2], /
189
- ) -> unsignedinteger[_NBit1] | unsignedinteger[_NBit2]: ...
190
-
191
- @type_check_only
192
- class _UnsignedIntDivMod(Protocol[_NBit1]):
193
- @overload
194
- def __call__(self, other: bool, /) -> _2Tuple[signedinteger[_NBit1]]: ...
195
- @overload
196
- def __call__(self, other: int | signedinteger, /) -> _2Tuple[Any]: ...
197
- @overload
198
- def __call__(self, other: float, /) -> _2Tuple[floating[_NBit1]] | _2Tuple[float64]: ...
199
- @overload
200
- def __call__(
201
- self, other: unsignedinteger[_NBit2], /
202
- ) -> _2Tuple[unsignedinteger[_NBit1]] | _2Tuple[unsignedinteger[_NBit2]]: ...
203
-
204
- @type_check_only
205
- class _SignedIntOp(Protocol[_NBit1]):
206
- @overload
207
- def __call__(self, other: int, /) -> signedinteger[_NBit1]: ...
208
- @overload
209
- def __call__(self, other: float, /) -> float64: ...
210
- @overload
211
- def __call__(self, other: complex, /) -> complex128: ...
212
- @overload
213
- def __call__(self, other: signedinteger[_NBit2], /) -> signedinteger[_NBit1] | signedinteger[_NBit2]: ...
214
-
215
- @type_check_only
216
- class _SignedIntBitOp(Protocol[_NBit1]):
217
- @overload
218
- def __call__(self, other: bool, /) -> signedinteger[_NBit1]: ...
219
- @overload
220
- def __call__(self, other: int, /) -> signedinteger[_NBit1] | int_: ...
221
- @overload
222
- def __call__(
223
- self, other: signedinteger[_NBit2], /
224
- ) -> signedinteger[_NBit1] | signedinteger[_NBit2]: ...
225
-
226
- @type_check_only
227
- class _SignedIntMod(Protocol[_NBit1]):
228
- @overload
229
- def __call__(self, other: bool, /) -> signedinteger[_NBit1]: ...
230
- @overload
231
- def __call__(self, other: int, /) -> signedinteger[_NBit1] | int_: ...
232
- @overload
233
- def __call__(self, other: float, /) -> floating[_NBit1] | float64: ...
234
- @overload
235
- def __call__(
236
- self, other: signedinteger[_NBit2], /
237
- ) -> signedinteger[_NBit1] | signedinteger[_NBit2]: ...
238
-
239
- @type_check_only
240
- class _SignedIntDivMod(Protocol[_NBit1]):
241
- @overload
242
- def __call__(self, other: bool, /) -> _2Tuple[signedinteger[_NBit1]]: ...
243
- @overload
244
- def __call__(self, other: int, /) -> _2Tuple[signedinteger[_NBit1]] | _2Tuple[int_]: ...
245
- @overload
246
- def __call__(self, other: float, /) -> _2Tuple[floating[_NBit1]] | _2Tuple[float64]: ...
247
- @overload
248
- def __call__(
249
- self, other: signedinteger[_NBit2], /
250
- ) -> _2Tuple[signedinteger[_NBit1]] | _2Tuple[signedinteger[_NBit2]]: ...
251
-
252
- @type_check_only
253
- class _FloatOp(Protocol[_NBit1]):
254
- @overload
255
- def __call__(self, other: int, /) -> floating[_NBit1]: ...
256
- @overload
257
- def __call__(self, other: float, /) -> floating[_NBit1] | float64: ...
258
- @overload
259
- def __call__(
260
- self, other: complex, /
261
- ) -> complexfloating[_NBit1, _NBit1] | complex128: ...
262
- @overload
263
- def __call__(
264
- self, other: integer[_NBit2] | floating[_NBit2], /
265
- ) -> floating[_NBit1] | floating[_NBit2]: ...
266
-
267
- @type_check_only
268
- class _FloatMod(Protocol[_NBit1]):
269
- @overload
270
- def __call__(self, other: bool, /) -> floating[_NBit1]: ...
271
- @overload
272
- def __call__(self, other: int, /) -> floating[_NBit1] | floating[_NBitInt]: ...
273
- @overload
274
- def __call__(self, other: float, /) -> floating[_NBit1] | float64: ...
275
- @overload
276
- def __call__(
277
- self, other: integer[_NBit2] | floating[_NBit2], /
278
- ) -> floating[_NBit1] | floating[_NBit2]: ...
279
-
280
- class _FloatDivMod(Protocol[_NBit1]):
281
- @overload
282
- def __call__(self, other: bool, /) -> _2Tuple[floating[_NBit1]]: ...
283
- @overload
284
- def __call__(
285
- self, other: int, /
286
- ) -> _2Tuple[floating[_NBit1]] | _2Tuple[floating[_NBitInt]]: ...
287
- @overload
288
- def __call__(
289
- self, other: float, /
290
- ) -> _2Tuple[floating[_NBit1]] | _2Tuple[float64]: ...
291
- @overload
292
- def __call__(
293
- self, other: integer[_NBit2] | floating[_NBit2], /
294
- ) -> _2Tuple[floating[_NBit1]] | _2Tuple[floating[_NBit2]]: ...
295
-
296
- @type_check_only
297
- class _NumberOp(Protocol):
298
- def __call__(self, other: _NumberLike_co, /) -> Any: ...
299
-
300
- @final
301
- @type_check_only
302
- class _SupportsLT(Protocol):
303
- def __lt__(self, other: Any, /) -> Any: ...
304
-
305
- @final
306
- @type_check_only
307
- class _SupportsLE(Protocol):
308
- def __le__(self, other: Any, /) -> Any: ...
309
-
310
- @final
311
- @type_check_only
312
- class _SupportsGT(Protocol):
313
- def __gt__(self, other: Any, /) -> Any: ...
314
-
315
- @final
316
- @type_check_only
317
- class _SupportsGE(Protocol):
318
- def __ge__(self, other: Any, /) -> Any: ...
319
-
320
- @final
321
- @type_check_only
322
- class _ComparisonOpLT(Protocol[_T1_contra, _T2_contra]):
323
- @overload
324
- def __call__(self, other: _T1_contra, /) -> np.bool: ...
325
- @overload
326
- def __call__(self, other: _T2_contra, /) -> NDArray[np.bool]: ...
327
- @overload
328
- def __call__(self, other: _NestedSequence[_SupportsGT], /) -> NDArray[np.bool]: ...
329
- @overload
330
- def __call__(self, other: _SupportsGT, /) -> np.bool: ...
331
-
332
- @final
333
- @type_check_only
334
- class _ComparisonOpLE(Protocol[_T1_contra, _T2_contra]):
335
- @overload
336
- def __call__(self, other: _T1_contra, /) -> np.bool: ...
337
- @overload
338
- def __call__(self, other: _T2_contra, /) -> NDArray[np.bool]: ...
339
- @overload
340
- def __call__(self, other: _NestedSequence[_SupportsGE], /) -> NDArray[np.bool]: ...
341
- @overload
342
- def __call__(self, other: _SupportsGE, /) -> np.bool: ...
343
-
344
- @final
345
- @type_check_only
346
- class _ComparisonOpGT(Protocol[_T1_contra, _T2_contra]):
347
- @overload
348
- def __call__(self, other: _T1_contra, /) -> np.bool: ...
349
- @overload
350
- def __call__(self, other: _T2_contra, /) -> NDArray[np.bool]: ...
351
- @overload
352
- def __call__(self, other: _NestedSequence[_SupportsLT], /) -> NDArray[np.bool]: ...
353
- @overload
354
- def __call__(self, other: _SupportsLT, /) -> np.bool: ...
355
-
356
- @final
357
- @type_check_only
358
- class _ComparisonOpGE(Protocol[_T1_contra, _T2_contra]):
359
- @overload
360
- def __call__(self, other: _T1_contra, /) -> np.bool: ...
361
- @overload
362
- def __call__(self, other: _T2_contra, /) -> NDArray[np.bool]: ...
363
- @overload
364
- def __call__(self, other: _NestedSequence[_SupportsGT], /) -> NDArray[np.bool]: ...
365
- @overload
366
- def __call__(self, other: _SupportsGT, /) -> np.bool: ...
@@ -1,2 +0,0 @@
1
- Version: 1.11.0
2
- Arguments: ['C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-aj10ap0h\\cp314-win_arm64\\build\\venv\\Scripts\\delvewheel', 'repair', '--add-path', 'C:/a/numpy/numpy/.openblas/lib', '-w', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-aj10ap0h\\cp314-win_arm64\\repaired_wheel', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-aj10ap0h\\cp314-win_arm64\\built_wheel\\numpy-2.3.2-cp314-cp314-win_arm64.whl']
File without changes