Skip to content

Commit

Permalink
Only call callback if kwargs empty
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Oct 10, 2018
1 parent 3ab0fe4 commit f9b63a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/core/spaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ def __call__(self, *args, **kwargs):
# Nothing to do for callbacks that accept no arguments
kwarg_hash = kwargs.pop('memoization_hash', ())
(self.args, self.kwargs) = (args, kwargs)
if not args and not kwarg_hash: return self.callable()
if not args and not kwargs and not any(kwarg_hash): return self.callable()
inputs = [i for i in self.inputs if isinstance(i, DynamicMap)]
streams = []
for stream in [s for i in inputs for s in get_nested_streams(i)]:
Expand Down

0 comments on commit f9b63a7

Please sign in to comment.