Add undocumented unittest.TextTestResult attributes (#4052)

Add missing type hints for attributes in unittest.TextTestResult.
This commit is contained in:
karl ding
2020-05-21 03:11:59 -07:00
committed by GitHub
parent 960c4eb42d
commit 9c6e8fd240

View File

@@ -8,8 +8,12 @@ _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: ...