Skip to content

Commit a2451e1

Browse files
committed
Apply code style suggestions by @ccordoba12
1 parent d8afeb0 commit a2451e1

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

qtpy/QtGui.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ def setShortcuts(self, shortcuts):
295295
)
296296
QAction.setShortcut = _action_set_shortcut
297297
QAction.setShortcuts = _action_set_shortcuts
298-
if ( # despite the two previous lines!
298+
# Despite the two previous lines!
299+
if (
299300
QAction.setShortcut is not _action_set_shortcut
300301
or QAction.setShortcuts is not _action_set_shortcuts
301302
):

qtpy/QtWidgets.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ def addAction(self, *args):
228228
old_add_action=QMenu.addAction,
229229
)
230230
QMenu.addAction = _menu_add_action
231-
if QMenu.addAction is not _menu_add_action: # despite the previous line!
231+
# Despite the previous line!
232+
if QMenu.addAction is not _menu_add_action:
232233
QMenu = _QMenu
233234

234235
class _QToolBar(QToolBar):
@@ -246,7 +247,6 @@ def addAction(self, *args):
246247
old_add_action=QToolBar.addAction,
247248
)
248249
QToolBar.addAction = _toolbar_add_action
249-
if ( # despite the previous line!
250-
QToolBar.addAction is not _toolbar_add_action
251-
):
250+
# Despite the previous line!
251+
if QToolBar.addAction is not _toolbar_add_action:
252252
QToolBar = _QToolBar

0 commit comments

Comments
 (0)