style(gui): Apply strict vertical compaction and add type hints
This commit is contained in:
+5
-3
@@ -1016,7 +1016,7 @@ class App:
|
||||
def _render_history_window(self) -> None:
|
||||
if not self.show_windows.get('Undo/Redo History', False):
|
||||
return
|
||||
def iterate_history(history: typing.List[typing.Dict[str, typing.Any]]):
|
||||
def iterate_history(history: typing.List[typing.Dict[str, typing.Any]]) -> None:
|
||||
for i, entry in enumerate(reversed(history)):
|
||||
actual_idx = len(history) - 1 - i
|
||||
desc = entry.get("description", "UI Change")
|
||||
@@ -1801,7 +1801,7 @@ class App:
|
||||
|
||||
if self.perf_profiling_enabled: self.perf_monitor.end_component("_render_paths_panel")
|
||||
|
||||
def _save_paths(self):
|
||||
def _save_paths(self) -> None:
|
||||
"""
|
||||
[C: tests/test_gui_paths.py:test_save_paths]
|
||||
"""
|
||||
@@ -3251,7 +3251,7 @@ class App:
|
||||
total_ast += stats.get("ast_elements", 0)
|
||||
|
||||
if missing_keys and not self._file_stats_worker_active:
|
||||
def _stats_worker():
|
||||
def _stats_worker() -> None:
|
||||
self._file_stats_worker_active = True
|
||||
try:
|
||||
for path, key in missing_keys[:10]:
|
||||
@@ -5156,3 +5156,5 @@ def main() -> None:
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user