massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / unittest / runner.pyi
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stdlib/unittest/runner.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stdlib/unittest/runner.pyi
new file mode 100644 (file)
index 0000000..bf8f3c0
--- /dev/null
@@ -0,0 +1,35 @@
+import unittest.case
+import unittest.result
+import unittest.suite
+from typing import Callable, TextIO, Type
+
+_ResultClassType = Callable[[TextIO, bool, int], unittest.result.TestResult]
+
+class TextTestResult(unittest.result.TestResult):
+    descriptions: bool  # undocumented
+    dots: bool  # undocumented
+    separator1: str
+    separator2: str
+    showall: bool  # undocumented
+    stream: TextIO  # undocumented
+    def __init__(self, stream: TextIO, descriptions: bool, verbosity: int) -> None: ...
+    def getDescription(self, test: unittest.case.TestCase) -> str: ...
+    def printErrors(self) -> None: ...
+    def printErrorList(self, flavour: str, errors: tuple[unittest.case.TestCase, str]) -> None: ...
+
+class TextTestRunner(object):
+    resultclass: _ResultClassType
+    def __init__(
+        self,
+        stream: TextIO | None = ...,
+        descriptions: bool = ...,
+        verbosity: int = ...,
+        failfast: bool = ...,
+        buffer: bool = ...,
+        resultclass: _ResultClassType | None = ...,
+        warnings: Type[Warning] | None = ...,
+        *,
+        tb_locals: bool = ...,
+    ) -> None: ...
+    def _makeResult(self) -> unittest.result.TestResult: ...
+    def run(self, test: unittest.suite.TestSuite | unittest.case.TestCase) -> unittest.result.TestResult: ...