From ee7befc4ab33758cf0a2068dcf2b65fe46655782 Mon Sep 17 00:00:00 2001 From: alemidev Date: Wed, 19 Jan 2022 02:24:00 +0100 Subject: [PATCH] propagate callback to allow stacked decorators --- aiocraft/traits/callbacks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aiocraft/traits/callbacks.py b/aiocraft/traits/callbacks.py index 6bd2499..a3b4ed5 100644 --- a/aiocraft/traits/callbacks.py +++ b/aiocraft/traits/callbacks.py @@ -24,6 +24,7 @@ class CallbacksHolder: if key not in self._callbacks: self._callbacks[key] = [] self._callbacks[key].append(callback) + return callback def trigger(self, key:Any) -> List[Callable]: if key not in self._callbacks: