Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3e9fc75

Browse files
authored
Merge pull request#252 from numpy/numpy.testing
🏷️ fix stubtest errors in `numpy.testing`
2 parents9fe2834 +72190c1 commit3e9fc75

File tree

5 files changed

+183
-130
lines changed

5 files changed

+183
-130
lines changed

‎.mypyignore‎

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
# intentional type-check-only deviations from runtime
12
numpy\.__numtype__
2-
numpy\.polynomial\._polytypes
33
numpy\._typing.*
4-
numpy\.typing\.mypy_plugin
4+
numpy\.polynomial\._polytypes
5+
56

67
# internal testing code
78
numpy\.conftest
89
numpy(\.\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
1213
numpy(\..+)?\.dtype\.type
@@ -25,8 +26,16 @@ numpy\.matlib\.__all__
2526
# requires numpy/_core/code_generators to be on the PYTHONPATH when running stubtest
2627
numpy\._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]+

‎.mypyignore-todo‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -231,18 +231,4 @@ numpy.polynomial.polynomial.polyvander
231231
numpy.polynomial.polynomial.polyvander2d
232232
numpy.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-
248234
numpy.typing.NBitBase

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp