From 6e23d9d223b44ebfd8e5bae299fbfb3d4349d44c Mon Sep 17 00:00:00 2001 From: Teal Dulcet Date: Fri, 21 Mar 2025 04:56:09 -0700 Subject: [PATCH] Fixed SIM118 (in-dict-keys): Use `key in dict` instead of `key in dict.keys()` --- 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 7c9b8139..d9899831 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 in prev_status.keys(): + for category in prev_status: if category not in cur_status: out.add_heading(category) out.print_warning("This section was removed.")