Skip to content

Commit

Permalink
if the slot is a partial, pass the arguments (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobfeder authored Oct 28, 2020
1 parent d72773d commit a3a7674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PySignal.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def _get_sender():
if not slot:
continue
elif isinstance(slot, partial):
slot()
slot(*args, **kwargs)
elif isinstance(slot, weakref.WeakKeyDictionary):
# For class methods, get the class object and call the method accordingly.
for obj, method in slot.items():
Expand Down

0 comments on commit a3a7674

Please sign in to comment.