File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
addons/source-python/packages/source-python Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,9 @@ def __init__(self, callback):
3131 # Register the filter
3232 self ._manager_class .register_filter (self .callback )
3333
34- def __call__ (self , * args ):
34+ def __call__ (self , * args , ** kwargs ):
3535 """Call the callback."""
36- self .callback (* args )
36+ return self .callback (* args , ** kwargs )
3737
3838 def _unload_instance (self ):
3939 """Unregister the filter."""
Original file line number Diff line number Diff line change @@ -83,9 +83,9 @@ def __init__(self, callback):
8383 self .callback = callback
8484 self ._class_instance .append (self .callback )
8585
86- def __call__ (self , * args ):
86+ def __call__ (self , * args , ** kwargs ):
8787 """Call the callback."""
88- self .callback (* args )
88+ return self .callback (* args , ** kwargs )
8989
9090 def _unload_instance (self ):
9191 """Unregister the hook."""
You can’t perform that action at this time.
0 commit comments