correct return value type TestRunner.run

This commit is contained in:
Reverb Chu
2016-12-16 15:24:20 -08:00
committed by Łukasz Langa
parent 89da3a4159
commit a6ecab3fe7

View File

@@ -285,9 +285,8 @@ defaultTestLoader = ... # type: TestLoader
_ResultClassType = Callable[[TextIO, bool, int], TestResult]
# not really documented
class TestRunner:
def run(self, test: Union[TestSuite, TestCase]) -> None: ...
def run(self, test: Union[TestSuite, TestCase]) -> TestResult: ...
class TextTestRunner(TestRunner):
if sys.version_info >= (3, 5):