Fix the return type for unittest.TestCase.run() (#2603)

In Python 3 this method returns None if the test is skipped, and a
TestResult otherwise.
This commit is contained in:
Adam Simpkins
2018-11-16 01:32:42 -08:00
committed by Sebastian Rittau
parent 4dc21f04dd
commit c1dbdc7e26

View File

@@ -37,7 +37,7 @@ class TestCase:
def setUpClass(cls) -> None: ...
@classmethod
def tearDownClass(cls) -> None: ...
def run(self, result: Optional[TestResult] = ...) -> TestCase: ...
def run(self, result: Optional[TestResult] = ...) -> Optional[TestResult]: ...
def skipTest(self, reason: Any) -> None: ...
def subTest(self, msg: Any = ..., **params: Any) -> ContextManager[None]: ...
def debug(self) -> None: ...