File tree Expand file tree Collapse file tree 5 files changed +183
-130
lines changed
src/numpy-stubs/testing/_private Expand file tree Collapse file tree 5 files changed +183
-130
lines changed Original file line number Diff line number Diff line change
1
+ # intentional type-check-only deviations from runtime
1
2
numpy\.__numtype__
2
- numpy\.polynomial\._polytypes
3
3
numpy\._typing.*
4
- numpy\.typing\.mypy_plugin
4
+ numpy\.polynomial\._polytypes
5
+
5
6
6
7
# internal testing code
7
8
numpy\.conftest
8
9
numpy(\.\w+)?\.tests.*
9
- numpy.random._generator.__test__
10
+ numpy\ .random\ ._generator\ .__test__
10
11
11
12
# workaround for the `dtype.type` generic class-attribute that's `None` unless instantiated
12
13
numpy(\..+)?\.dtype\.type
@@ -25,8 +26,16 @@ numpy\.matlib\.__all__
25
26
# requires numpy/_core/code_generators to be on the PYTHONPATH when running stubtest
26
27
numpy\._core\.cversions
27
28
29
+ # mypy plugin
30
+ numpy\.typing\.mypy_plugin
31
+
32
+
28
33
# workaround mypy's lack of Python 3.13 support for `NamedTuple` types (mypy <= 1.15.0)
29
- numpy\._core\.overrides\.ArgSpec\.__replace__
30
- numpy\._utils\._pep440\._Version\.__replace__
31
- numpy\.lib\._arraysetops_impl\.Unique(All|Counts|Inverse)Result\.__replace__
32
- numpy\.linalg\._linalg\.(Eig|Eigh|QR|SVD|Slogdet)Result\.__replace__
34
+ numpy(\.\w+)+\.__replace__
35
+
36
+ # workaround for https://github.com/python/mypy/issues/15302#issuecomment-2701979355
37
+ numpy\.testing(\._private\.utils)?\.check_support_sve
38
+
39
+ # workaround for stubtest ignoring `if sys.version_info` blocks in `_typeshed` when
40
+ # `python_version`
41
+ numpy\.testing\.TestCase\.[_a-zA-Z]+
Original file line number Diff line number Diff line change @@ -231,18 +231,4 @@ numpy.polynomial.polynomial.polyvander
231
231
numpy.polynomial.polynomial.polyvander2d
232
232
numpy.polynomial.polynomial.polyvander3d
233
233
234
- numpy\.testing(\._private.utils)?\.assert_array_equal
235
- numpy\.testing(\._private.utils)?\.assert_array_almost_equal
236
- numpy\.testing(\._private.utils)?\.assert_array_compare
237
- numpy\.testing(\._private.utils)?\.assert_raises_regex
238
- numpy\.testing(\._private.utils)?\.assert_warns
239
- numpy\.testing(\._private.utils)?\.check_support_sve
240
- numpy\.testing(\._private.utils)?\.run_threaded
241
- numpy.testing._private.utils.raises
242
- numpy.testing.run_threaded
243
- numpy.testing.TestCase.__init_subclass__
244
- numpy.testing.TestCase._addSkip
245
- numpy.testing.TestCase.assertDictContainsSubset
246
- numpy.testing.TestCase.enter(Class)?Context
247
-
248
234
numpy.typing.NBitBase
You can’t perform that action at this time.
0 commit comments