From c38e3ee446c2d1310b832cf8adbe0b50f10068b9 Mon Sep 17 00:00:00 2001 From: Dylan Jeannin Date: Mon, 11 May 2026 14:59:14 +0200 Subject: [PATCH] correct pep8 rules --- src/View/D90AdisTS/Table.py | 2 +- src/View/D90AdisTS/Window.py | 4 ++-- src/View/DIFAdisTS/Table.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/View/D90AdisTS/Table.py b/src/View/D90AdisTS/Table.py index f926bf41..71614dce 100644 --- a/src/View/D90AdisTS/Table.py +++ b/src/View/D90AdisTS/Table.py @@ -222,7 +222,7 @@ class D90TableModel(PamhyrTableModel): self._data, self._data._data, [data_rows[id(self._lst[row])] for row in rows - if 0 <= row < len(self._lst)] + if 0 <= row < len(self._lst)] ) ) diff --git a/src/View/D90AdisTS/Window.py b/src/View/D90AdisTS/Window.py index 0af4f4b6..3f76bca3 100644 --- a/src/View/D90AdisTS/Window.py +++ b/src/View/D90AdisTS/Window.py @@ -267,12 +267,12 @@ class D90AdisTSWindow(PamhyrWindow): undo_stack = self._undo_stack if undo_stack is None or not undo_stack.canUndo(): return - + if isinstance(undo_stack.command(undo_stack.index() - 1), SetCommand): self._table.undo() else: self._table_spec.undo() - + self._update() def _redo(self): diff --git a/src/View/DIFAdisTS/Table.py b/src/View/DIFAdisTS/Table.py index 433c7d93..12e8d382 100644 --- a/src/View/DIFAdisTS/Table.py +++ b/src/View/DIFAdisTS/Table.py @@ -238,8 +238,8 @@ class DIFTableModel(PamhyrTableModel): DelCommand( self._data, self._data._data, - [data_rows[id(self._lst[row])] for row in rows - if 0 <= row < len(self._lst)] + [data_rows[id(self._lst[row])] for row in rows + if 0 <= row < len(self._lst)] ) ) self._setup_lst()