m2m模型翻译
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

113 lines
3.0 KiB

6 months ago
  1. import sys
  2. import warnings
  3. from typing import Any, List, ClassVar, Tuple, Set
  4. if sys.version_info >= (3, 8):
  5. from typing import Final
  6. else:
  7. from typing_extensions import Final
  8. from unittest import (
  9. TestCase as TestCase,
  10. )
  11. from unittest.case import (
  12. SkipTest as SkipTest,
  13. )
  14. __all__: List[str]
  15. def run_module_suite(file_to_run=..., argv=...): ...
  16. class KnownFailureException(Exception): ...
  17. class IgnoreException(Exception): ...
  18. class clear_and_catch_warnings(warnings.catch_warnings):
  19. class_modules: ClassVar[Tuple[str, ...]]
  20. modules: Set[str]
  21. def __init__(self, record=..., modules=...): ...
  22. def __enter__(self): ...
  23. def __exit__(self, *exc_info): ...
  24. class suppress_warnings:
  25. log: List[warnings.WarningMessage]
  26. def __init__(self, forwarding_rule=...): ...
  27. def filter(self, category=..., message=..., module=...): ...
  28. def record(self, category=..., message=..., module=...): ...
  29. def __enter__(self): ...
  30. def __exit__(self, *exc_info): ...
  31. def __call__(self, func): ...
  32. verbose: int
  33. IS_PYPY: Final[bool]
  34. HAS_REFCOUNT: Final[bool]
  35. HAS_LAPACK64: Final[bool]
  36. def assert_(val, msg=...): ...
  37. def memusage(processName=..., instance=...): ...
  38. def jiffies(_proc_pid_stat=..., _load_time=...): ...
  39. def build_err_msg(
  40. arrays,
  41. err_msg,
  42. header=...,
  43. verbose=...,
  44. names=...,
  45. precision=...,
  46. ): ...
  47. def assert_equal(actual, desired, err_msg=..., verbose=...): ...
  48. def print_assert_equal(test_string, actual, desired): ...
  49. def assert_almost_equal(
  50. actual,
  51. desired,
  52. decimal=...,
  53. err_msg=...,
  54. verbose=...,
  55. ): ...
  56. def assert_approx_equal(
  57. actual,
  58. desired,
  59. significant=...,
  60. err_msg=...,
  61. verbose=...,
  62. ): ...
  63. def assert_array_compare(
  64. comparison,
  65. x,
  66. y,
  67. err_msg=...,
  68. verbose=...,
  69. header=...,
  70. precision=...,
  71. equal_nan=...,
  72. equal_inf=...,
  73. ): ...
  74. def assert_array_equal(x, y, err_msg=..., verbose=...): ...
  75. def assert_array_almost_equal(x, y, decimal=..., err_msg=..., verbose=...): ...
  76. def assert_array_less(x, y, err_msg=..., verbose=...): ...
  77. def runstring(astr, dict): ...
  78. def assert_string_equal(actual, desired): ...
  79. def rundocs(filename=..., raise_on_error=...): ...
  80. def raises(*args): ...
  81. def assert_raises(*args, **kwargs): ...
  82. def assert_raises_regex(exception_class, expected_regexp, *args, **kwargs): ...
  83. def decorate_methods(cls, decorator, testmatch=...): ...
  84. def measure(code_str, times=..., label=...): ...
  85. def assert_allclose(
  86. actual,
  87. desired,
  88. rtol=...,
  89. atol=...,
  90. equal_nan=...,
  91. err_msg=...,
  92. verbose=...,
  93. ): ...
  94. def assert_array_almost_equal_nulp(x, y, nulp=...): ...
  95. def assert_array_max_ulp(a, b, maxulp=..., dtype=...): ...
  96. def assert_warns(warning_class, *args, **kwargs): ...
  97. def assert_no_warnings(*args, **kwargs): ...
  98. def tempdir(*args, **kwargs): ...
  99. def temppath(*args, **kwargs): ...
  100. def assert_no_gc_cycles(*args, **kwargs): ...
  101. def break_cycles(): ...
  102. def _assert_valid_refcount(op): ...
  103. def _gen_alignment_data(dtype=..., type=..., max_size=...): ...