Skip to content

Commit 369ad9b

Browse files
committed
Updated Commands' __call__ to return the callback
As opposed to the callback object itself
1 parent 85bc799 commit 369ad9b

File tree

1 file changed

+2
-2
lines changed
  • addons/source-python/packages/source-python/commands

1 file changed

+2
-2
lines changed

addons/source-python/packages/source-python/commands/command.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ def __call__(self, callback):
3232
self._manager_class.register_commands(
3333
self.names, self.callback, *self.args, **self.kwargs)
3434

35-
# Return the object
36-
return self
35+
# Return the original callback
36+
return callback
3737

3838
def _unload_instance(self):
3939
"""Unregister the commands."""

0 commit comments

Comments
 (0)