Skip to content

Commit 1a77685

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent cc424ae commit 1a77685

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

qtpy/_utils.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,21 @@ def add_action(self, *args, old_add_action):
9090
else:
9191
icon = QIcon()
9292

93-
if all(
94-
isinstance(arg, t)
95-
for arg, t in zip(
96-
args,
97-
[
98-
str,
99-
(QKeySequence, QKeySequence.StandardKey, str, int),
100-
QObject,
101-
bytes,
102-
],
93+
if (
94+
all(
95+
isinstance(arg, t)
96+
for arg, t in zip(
97+
args,
98+
[
99+
str,
100+
(QKeySequence, QKeySequence.StandardKey, str, int),
101+
QObject,
102+
bytes,
103+
],
104+
)
103105
)
104-
) and len(args) >= 2:
106+
and len(args) >= 2
107+
):
105108
text, shortcut, *args = args
106109
action = old_add_action(self, icon, text, *args)
107110
action.setShortcut(shortcut)

0 commit comments

Comments
 (0)