Skip to content

Commit

Permalink
ruff: format
Browse files Browse the repository at this point in the history
  • Loading branch information
hellmrf committed Dec 7, 2024
1 parent 872afc4 commit 2dcbbe2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions maligner/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ def __init__(self, filenames: Optional[list[Path | str]] = None):
self.molgridview = MolGridViewWidget(self)
self.init_GUI()

def tr(self, sourceText: str, disambiguation: Optional[str] = None, n: int = -1) -> str:
return QtWidgets.QApplication.translate("MolGridViewWidget", sourceText, disambiguation, n)
def tr(
self, sourceText: str, disambiguation: Optional[str] = None, n: int = -1
) -> str:
return QtWidgets.QApplication.translate(
"MolGridViewWidget", sourceText, disambiguation, n
)

@property
def filename(self):
Expand Down
8 changes: 6 additions & 2 deletions maligner/widgets/MolGridView.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,12 @@ def __init__(self, parent: Optional[QtWidgets.QWidget] = None):

grid_layout.addWidget(self.listview, 0, 0, 1, 1)

def tr(self, sourceText: str, disambiguation: Optional[str] = None, n: int = -1) -> str:
return QtWidgets.QApplication.translate("MolGridViewWidget", sourceText, disambiguation, n)
def tr(
self, sourceText: str, disambiguation: Optional[str] = None, n: int = -1
) -> str:
return QtWidgets.QApplication.translate(
"MolGridViewWidget", sourceText, disambiguation, n
)

@property
def filenames(self):
Expand Down

0 comments on commit 2dcbbe2

Please sign in to comment.