Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 1, 2023
1 parent 9fd5efb commit 1dcd69b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qtpy/QtWidgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ def __getattr__(attr):

# Make `addAction` compatible with Qt6 >= 6.3
if PYQT5 or PYSIDE2 or parse(QT_VERSION) < parse("6.3"):
QMenu.addAction = partialmethod(_utils.add_action, old_add_action=QMenu.addAction)
QMenu.addAction = partialmethod(
_utils.add_action, old_add_action=QMenu.addAction,
)
QToolBar.addAction = partialmethod(
_utils.add_action,
old_add_action=QToolBar.addAction,
Expand Down

0 comments on commit 1dcd69b

Please sign in to comment.