Skip to content

Commit d6fa72d

Browse files
committed
Improve add_action implementation
Simplify code, reduce cyclomatic complexity from level C to A
1 parent 2dd2013 commit d6fa72d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

qtpy/_utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ def add_action(self, *args, old_add_action):
7979
icon: QIcon
8080
text: str
8181
shortcut: QKeySequence | QKeySequence.StandardKey | str | int
82-
receiver: QObject
83-
member: bytes
8482

8583
# if args and isinstance(args[0], QIcon):
8684
if any(map(lambda arg: isinstance(arg, QIcon), args[:1])): # Better to use previous line instead of this

0 commit comments

Comments
 (0)