From 5c4452af9cf853d6a3d76e6833e391b49a4b1e18 Mon Sep 17 00:00:00 2001 From: Antonio Date: Wed, 30 Oct 2024 19:52:25 +0100 Subject: [PATCH] Add types to file generated by __test__.py I am adding types to user_args otherwise mypy complains when running `bazel test`. --- py/private/pytest.py.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/private/pytest.py.tmpl b/py/private/pytest.py.tmpl index 720b33d1..a72713dc 100644 --- a/py/private/pytest.py.tmpl +++ b/py/private/pytest.py.tmpl @@ -39,7 +39,7 @@ if __name__ == "__main__": if test_filter is not None: args.append(f"-k={test_filter}") - user_args = [$$FLAGS$$] + user_args: list[str] = [$$FLAGS$$] if len(user_args) > 0: args.extend(user_args)