PHP 8.2.30
Preview: testing.pyi Size: 1.34 KB
//proc/self/root/opt/cloudlinux/venv/lib64/python3.11/site-packages/numpy/typing/tests/data/fail/testing.pyi

import numpy as np
import numpy.typing as npt

AR_U: npt.NDArray[np.str_]

def func() -> bool: ...

np.testing.assert_(True, msg=1)  # E: incompatible type
np.testing.build_err_msg(1, "test")  # E: incompatible type
np.testing.assert_almost_equal(AR_U, AR_U)  # E: incompatible type
np.testing.assert_approx_equal([1, 2, 3], [1, 2, 3])  # E: incompatible type
np.testing.assert_array_almost_equal(AR_U, AR_U)  # E: incompatible type
np.testing.assert_array_less(AR_U, AR_U)  # E: incompatible type
np.testing.assert_string_equal(b"a", b"a")  # E: incompatible type

np.testing.assert_raises(expected_exception=TypeError, callable=func)  # E: No overload variant
np.testing.assert_raises_regex(expected_exception=TypeError, expected_regex="T", callable=func)  # E: No overload variant

np.testing.assert_allclose(AR_U, AR_U)  # E: incompatible type
np.testing.assert_array_almost_equal_nulp(AR_U, AR_U)  # E: incompatible type
np.testing.assert_array_max_ulp(AR_U, AR_U)  # E: incompatible type

np.testing.assert_warns(warning_class=RuntimeWarning, func=func)  # E: No overload variant
np.testing.assert_no_warnings(func=func)  # E: No overload variant
np.testing.assert_no_warnings(func, None)  # E: Too many arguments
np.testing.assert_no_warnings(func, test=None)  # E: Unexpected keyword argument

np.testing.assert_no_gc_cycles(func=func)  # E: No overload variant

Directory Contents

Dirs: 0 × Files: 45

Name Size Perms Modified Actions
3.76 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
549 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
480 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
1.06 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
455 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
132 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
515 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
2.55 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
2.24 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
888 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
286 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
395 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
334 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
539 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
366 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
843 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
5.46 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
367 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
509 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
2.03 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
913 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
276 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
158 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
1.29 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
159 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
652 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
1.65 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
405 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
1.34 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
325 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
427 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
780 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
276 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
2.76 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
704 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
2.88 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
152 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
315 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
1.34 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
899 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
379 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
679 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
1.32 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
733 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
174 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).