correct pep8 rules

disable_edition_parent_scenario
Dylan Jeannin 2026-05-11 14:59:14 +02:00
parent 606b9919e3
commit c38e3ee446
3 changed files with 5 additions and 5 deletions

View File

@ -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)]
)
)

View File

@ -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):

View File

@ -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()