From 8eabeefa6328343866f6d1686d23d7df1a159fb7 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Thu, 21 Mar 2024 08:40:16 -0700 Subject: [PATCH] mypy: update code required to bump sanity requirements Signed-off-by: Abhijeet Kasurde --- test/lib/ansible_test/_internal/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/ansible_test/_internal/util.py b/test/lib/ansible_test/_internal/util.py index 394c2632d43..903cbcc50aa 100644 --- a/test/lib/ansible_test/_internal/util.py +++ b/test/lib/ansible_test/_internal/util.py @@ -998,7 +998,7 @@ def retry(func: t.Callable[..., TValue], ex_type: t.Type[BaseException] = Subpro def parse_to_list_of_dict(pattern: str, value: str) -> list[dict[str, str]]: """Parse lines from the given value using the specified pattern and return the extracted list of key/value pair dictionaries.""" matched = [] - unmatched = [] + unmatched: list[str] = [] for line in value.splitlines(): match = re.search(pattern, line)