numpy 2.3.2__cp313-cp313t-win32.whl → 2.3.4__cp313-cp313t-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.

Files changed (82) hide show
  1. numpy/__config__.py +4 -4
  2. numpy/__init__.pyi +1101 -340
  3. numpy/_core/_multiarray_tests.cp313t-win32.lib +0 -0
  4. numpy/_core/_multiarray_tests.cp313t-win32.pyd +0 -0
  5. numpy/_core/_multiarray_umath.cp313t-win32.lib +0 -0
  6. numpy/_core/_multiarray_umath.cp313t-win32.pyd +0 -0
  7. numpy/_core/_operand_flag_tests.cp313t-win32.lib +0 -0
  8. numpy/_core/_operand_flag_tests.cp313t-win32.pyd +0 -0
  9. numpy/_core/_rational_tests.cp313t-win32.lib +0 -0
  10. numpy/_core/_rational_tests.cp313t-win32.pyd +0 -0
  11. numpy/_core/_simd.cp313t-win32.lib +0 -0
  12. numpy/_core/_simd.cp313t-win32.pyd +0 -0
  13. numpy/_core/_struct_ufunc_tests.cp313t-win32.lib +0 -0
  14. numpy/_core/_struct_ufunc_tests.cp313t-win32.pyd +0 -0
  15. numpy/_core/_ufunc_config.py +2 -0
  16. numpy/_core/_ufunc_config.pyi +52 -6
  17. numpy/_core/_umath_tests.cp313t-win32.lib +0 -0
  18. numpy/_core/_umath_tests.cp313t-win32.pyd +0 -0
  19. numpy/_core/lib/npymath.lib +0 -0
  20. numpy/_core/lib/pkgconfig/numpy.pc +1 -1
  21. numpy/_core/numerictypes.py +1 -1
  22. numpy/_core/tests/test_api.py +34 -1
  23. numpy/_core/tests/test_datetime.py +24 -0
  24. numpy/_core/tests/test_numerictypes.py +29 -0
  25. numpy/_core/tests/test_stringdtype.py +23 -16
  26. numpy/_core/tests/test_strings.py +15 -0
  27. numpy/_core/tests/test_umath.py +12 -0
  28. numpy/exceptions.pyi +2 -0
  29. numpy/fft/_pocketfft_umath.cp313t-win32.lib +0 -0
  30. numpy/fft/_pocketfft_umath.cp313t-win32.pyd +0 -0
  31. numpy/lib/_arraysetops_impl.pyi +24 -0
  32. numpy/lib/_histograms_impl.pyi +8 -8
  33. numpy/lib/_index_tricks_impl.pyi +12 -0
  34. numpy/lib/_polynomial_impl.pyi +10 -8
  35. numpy/lib/mixins.pyi +2 -0
  36. numpy/lib/tests/test_index_tricks.py +5 -0
  37. numpy/linalg/_linalg.py +1 -0
  38. numpy/linalg/_linalg.pyi +32 -39
  39. numpy/linalg/_umath_linalg.cp313t-win32.lib +0 -0
  40. numpy/linalg/_umath_linalg.cp313t-win32.pyd +0 -0
  41. numpy/linalg/lapack_lite.cp313t-win32.lib +0 -0
  42. numpy/linalg/lapack_lite.cp313t-win32.pyd +0 -0
  43. numpy/linalg/tests/test_linalg.py +14 -1
  44. numpy/ma/extras.pyi +4 -0
  45. numpy/random/_bounded_integers.cp313t-win32.lib +0 -0
  46. numpy/random/_bounded_integers.cp313t-win32.pyd +0 -0
  47. numpy/random/_common.cp313t-win32.lib +0 -0
  48. numpy/random/_common.cp313t-win32.pyd +0 -0
  49. numpy/random/_generator.cp313t-win32.lib +0 -0
  50. numpy/random/_generator.cp313t-win32.pyd +0 -0
  51. numpy/random/_mt19937.cp313t-win32.lib +0 -0
  52. numpy/random/_mt19937.cp313t-win32.pyd +0 -0
  53. numpy/random/_pcg64.cp313t-win32.lib +0 -0
  54. numpy/random/_pcg64.cp313t-win32.pyd +0 -0
  55. numpy/random/_philox.cp313t-win32.lib +0 -0
  56. numpy/random/_philox.cp313t-win32.pyd +0 -0
  57. numpy/random/_sfc64.cp313t-win32.lib +0 -0
  58. numpy/random/_sfc64.cp313t-win32.pyd +0 -0
  59. numpy/random/bit_generator.cp313t-win32.lib +0 -0
  60. numpy/random/bit_generator.cp313t-win32.pyd +0 -0
  61. numpy/random/lib/npyrandom.lib +0 -0
  62. numpy/random/mtrand.cp313t-win32.lib +0 -0
  63. numpy/random/mtrand.cp313t-win32.pyd +0 -0
  64. numpy/random/tests/test_generator_mt19937.py +5 -0
  65. numpy/testing/_private/extbuild.pyi +3 -3
  66. numpy/testing/_private/utils.pyi +1 -1
  67. numpy/tests/test_configtool.py +1 -1
  68. numpy/typing/tests/data/fail/arithmetic.pyi +1 -1
  69. numpy/typing/tests/data/fail/bitwise_ops.pyi +4 -4
  70. numpy/typing/tests/data/fail/scalars.pyi +6 -6
  71. numpy/typing/tests/data/reveal/arithmetic.pyi +29 -29
  72. numpy/typing/tests/data/reveal/array_constructors.pyi +5 -5
  73. numpy/typing/tests/data/reveal/bitwise_ops.pyi +10 -11
  74. numpy/typing/tests/data/reveal/linalg.pyi +6 -6
  75. numpy/typing/tests/data/reveal/mod.pyi +18 -19
  76. numpy/version.py +2 -2
  77. {numpy-2.3.2.dist-info → numpy-2.3.4.dist-info}/LICENSE.txt +881 -881
  78. {numpy-2.3.2.dist-info → numpy-2.3.4.dist-info}/METADATA +1 -1
  79. {numpy-2.3.2.dist-info → numpy-2.3.4.dist-info}/RECORD +81 -82
  80. numpy/_typing/_callable.pyi +0 -366
  81. {numpy-2.3.2.dist-info → numpy-2.3.4.dist-info}/WHEEL +0 -0
  82. {numpy-2.3.2.dist-info → numpy-2.3.4.dist-info}/entry_points.txt +0 -0
@@ -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 | np.floating[_64Bit])
113
- assert_type(i8 % f8, np.float64 | np.floating[_64Bit])
114
- assert_type(i4 % i8, np.int64 | np.int32)
115
- assert_type(i4 % f8, np.float64 | np.float32)
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.float32)
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.int64, np.int64] | tuple[np.int32, np.int32])
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.floating[_64Bit], np.floating[_64Bit]] | tuple[np.float64, np.float64])
125
- assert_type(i8.__divmod__(f8), tuple[np.floating[_64Bit], np.floating[_64Bit]] | tuple[np.float64, np.float64])
126
- assert_type(divmod(i8, f4), tuple[np.floating[_64Bit], np.floating[_64Bit]] | tuple[np.float32, np.float32])
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.float32, np.float32])
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 | np.floating[_64Bit])
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.int64 | np.int32)
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.float32)
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.floating[_64Bit], np.floating[_64Bit]] | tuple[np.float64, np.float64])
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.int64, np.int64] | tuple[np.int32, np.int32])
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[_64Bit], np.floating[_64Bit]] | tuple[np.float32, np.float32])
149
- assert_type(f4.__divmod__(i4), tuple[np.float32, np.float32])
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[_64Bit] | np.float32)
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.2"
5
+ version = "2.3.4"
6
6
  __version__ = version
7
7
  full_version = version
8
8
 
9
- git_revision = "bc5e4f811db9487a9ea1618ffb77a33b3919bb8e"
9
+ git_revision = "1458b9e79d1a5755eae9adcb346758f449b6b430"
10
10
  release = 'dev' not in version and '+' not in version
11
11
  short_version = version.split("+")[0]