4 from typing import Callable, TextIO, Type
6 _ResultClassType = Callable[[TextIO, bool, int], unittest.result.TestResult]
8 class TextTestResult(unittest.result.TestResult):
9 descriptions: bool # undocumented
10 dots: bool # undocumented
13 showall: bool # undocumented
14 stream: TextIO # undocumented
15 def __init__(self, stream: TextIO, descriptions: bool, verbosity: int) -> None: ...
16 def getDescription(self, test: unittest.case.TestCase) -> str: ...
17 def printErrors(self) -> None: ...
18 def printErrorList(self, flavour: str, errors: tuple[unittest.case.TestCase, str]) -> None: ...
20 class TextTestRunner(object):
21 resultclass: _ResultClassType
24 stream: TextIO | None = ...,
25 descriptions: bool = ...,
29 resultclass: _ResultClassType | None = ...,
30 warnings: Type[Warning] | None = ...,
32 tb_locals: bool = ...,
34 def _makeResult(self) -> unittest.result.TestResult: ...
35 def run(self, test: unittest.suite.TestSuite | unittest.case.TestCase) -> unittest.result.TestResult: ...