mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
correct return value type TestRunner.run
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user