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
12numpy\.__numtype__
2- numpy\.polynomial\._polytypes
33numpy\._typing.*
4- numpy\.typing\.mypy_plugin
4+ numpy\.polynomial\._polytypes
5+
56
67# internal testing code
78numpy\.conftest
89numpy(\.\w+)?\.tests.*
9- numpy.random._generator.__test__
10+ numpy\ .random\ ._generator\ .__test__
1011
1112# workaround for the `dtype.type` generic class-attribute that's `None` unless instantiated
1213numpy(\..+)?\.dtype\.type
@@ -25,8 +26,16 @@ numpy\.matlib\.__all__
2526# requires numpy/_core/code_generators to be on the PYTHONPATH when running stubtest
2627numpy\._core\.cversions
2728
29+ # mypy plugin
30+ numpy\.typing\.mypy_plugin
31+
32+
2833# 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
231231numpy.polynomial.polynomial.polyvander2d
232232numpy.polynomial.polynomial.polyvander3d
233233
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-
248234numpy.typing.NBitBase
You can’t perform that action at this time.
0 commit comments