From 3a6b38fbce05d510c833a41cf3cfe2b106fe6815 Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Tue, 21 Apr 2026 13:45:02 +0200 Subject: [PATCH] test: avoid type change of key variables The `ProblemReport` keys must be of type `str`. Avoid setting those keys initially to `None` to avoid mypy to complain. --- tests/integration/test_hooks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration/test_hooks.py b/tests/integration/test_hooks.py index 4aed56b41..b02922ebe 100644 --- a/tests/integration/test_hooks.py +++ b/tests/integration/test_hooks.py @@ -156,9 +156,9 @@ def test_package_hook_logs(self) -> None: with open(reps[0], "rb") as f: r.load(f) - filekey = None - log1key = None - log2key = None + filekey = "" + log1key = "" + log2key = "" for k in r.keys(): if k.endswith("Testhookspy"): filekey = k