From a3a7674d3a174d6246e4aaf7fa9a4958fa7b09cb Mon Sep 17 00:00:00 2001 From: Jacob Feder Date: Tue, 27 Oct 2020 22:54:16 -0500 Subject: [PATCH] if the slot is a partial, pass the arguments (#12) --- PySignal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PySignal.py b/PySignal.py index 163a21a..b6235fc 100644 --- a/PySignal.py +++ b/PySignal.py @@ -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():