From 01c71b691d1ab5602959266dca51401ad89f9d6d Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Wed, 27 Apr 2022 17:41:25 -0400 Subject: [PATCH] another day, another mypy update becomes stricter about typing Move GlobalState to a runtime T.NamedTuple, use it for constructing the tuple we are passing around rather than expecting mypy to detect that the one we already have matches. --- run_project_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_project_tests.py b/run_project_tests.py index f069e55a5..fb10e6335 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -1185,7 +1185,7 @@ def _run_tests(all_tests: T.List[T.Tuple[str, T.List[TestDef], bool]], print(f'\nRunning tests with {num_workers} workers') # Pack the global state - state = (compile_commands, clean_commands, test_commands, install_commands, uninstall_commands, backend, backend_flags, host_c_compiler) + state = GlobalState(compile_commands, clean_commands, test_commands, install_commands, uninstall_commands, backend, backend_flags, host_c_compiler) executor = ProcessPoolExecutor(max_workers=num_workers) futures: T.List[RunFutureUnion] = []