Fix typing issues pointed out by updated mypy

This commit is contained in:
Kovid Goyal
2020-10-12 23:03:07 +05:30
parent 91a714947c
commit efca2658ea
5 changed files with 20 additions and 13 deletions

View File

@@ -97,7 +97,7 @@ def run_tests() -> None:
def run_cli(suite: unittest.TestSuite, verbosity: int = 4) -> None:
r = unittest.TextTestRunner
r.resultclass = unittest.TextTestResult # type: ignore
r.resultclass = unittest.TextTestResult
init_env()
runner = r(verbosity=verbosity)
runner.tb_locals = True # type: ignore