Pamhyr: Fix PEP8.

scenarios
Pierre-Antoine 2025-09-18 11:26:20 +02:00
parent 589e591d3b
commit 8bcf776813
8 changed files with 5 additions and 5 deletions

View File

@ -275,6 +275,7 @@ class Layer(SQLSubModel):
self._sl.modified()
class SedimentLayer(SQLSubModel):
_sub_classes = [Layer]

View File

@ -414,7 +414,6 @@ class SQLSubModel(PamhyrID):
"""
raise NotImplementedMethodeError(self, self._db_save)
def _data_traversal(self,
predicate=lambda obj, data: True,
modifier=lambda obj, data: None,

View File

@ -51,7 +51,6 @@ class ListModel(PamhyrListModel):
), 0
)
def data(self, index, role):
row = index.row()
column = index.column()

View File

@ -66,6 +66,7 @@ class AddCommand(QUndoCommand):
else:
self._new.set_as_not_deleted()
class DelCommand(QUndoCommand):
def __init__(self, files, line):
QUndoCommand.__init__(self)

View File

@ -134,6 +134,7 @@ class AddCommand(QUndoCommand):
else:
self._new.set_as_not_deleted()
class DelCommand(QUndoCommand):
def __init__(self, lcs, tab, rows):
QUndoCommand.__init__(self)

View File

@ -71,7 +71,7 @@ class ScenarioMenu(AbstractMenu):
)
action = self._exec()
if action == None:
if action is None:
return
elif action == select:
self._parent.select_scenario(item)

View File

@ -61,7 +61,6 @@ class TableModel(PamhyrTableModel):
), 0
)
def data(self, index, role):
if role != Qt.ItemDataRole.DisplayRole:
return QVariant()