about summary refs log tree commit diff stats
path: root/scripts
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-06-29 10:55:51 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-06-29 10:55:51 +0300
commite73dbe15a51482210e714888a569375b10f4185d (patch)
treeb53c52553db04a0409ff29040f9d43e6593b004c /scripts
parentc152fcfb69a3868f8c53d3e63c7a4746c16ac09e (diff)
downloadfungus-launcher-e73dbe15a51482210e714888a569375b10f4185d.tar.gz
fungus-launcher-e73dbe15a51482210e714888a569375b10f4185d.tar.xz
more ruff stuff
Diffstat (limited to 'scripts')
-rw-r--r--scripts/check_handlers.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/check_handlers.py b/scripts/check_handlers.py
index f5056e8..0bc2b8f 100644
--- a/scripts/check_handlers.py
+++ b/scripts/check_handlers.py
@@ -95,9 +95,7 @@ def validate_file(filepath: Path, all_classes: dict[str, set[str]],
     except SyntaxError as exc:
         return [f"{filepath}: syntax error — {exc}"]
 
-    file_classes = {}  # class_name -> set of method names
-    for cls_name, methods in _extract_classes(tree):
-        file_classes[cls_name] = methods
+    file_classes = {cls_name: methods for cls_name, methods in _extract_classes(tree)}
 
     for lineno, widget_attr, signal, handler_method in connect_calls:
         # Check: does the handler method exist on any class in this file?