From 70bf676b73ab79c6ff17b2e5fdb273358e16cedd Mon Sep 17 00:00:00 2001 From: Teal Dulcet Date: Sun, 12 Jan 2025 07:38:26 -0800 Subject: [PATCH] Fixed PERF102 (incorrect-dict-iterator): When using only the keys of a dict use the `keys()` method --- management/status_checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/status_checks.py b/management/status_checks.py index 6c736423..7c9b8139 100755 --- a/management/status_checks.py +++ b/management/status_checks.py @@ -1033,7 +1033,7 @@ def run_and_output_changes(env, pool): if op in {"replace", "insert"}: BufferedOutput(with_lines=cur_lines[j1:j2]).playback(out) - for category, _prev_lines in prev_status.items(): + for category in prev_status.keys(): if category not in cur_status: out.add_heading(category) out.print_warning("This section was removed.")