Skip to content

Commit

Permalink
Fixed allow_keywords propagation in Options.__call__
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Apr 12, 2017
1 parent 87b5c9b commit ad97744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/core/options.py
Expand Up @@ -314,7 +314,7 @@ def __call__(self, allowed_keywords=None, **kwargs):
"""
Create a new Options object that inherits the parent options.
"""
allowed_keywords=self.allowed_keywords if allowed_keywords is None else allowed_keywords
allowed_keywords=self.allowed_keywords if allowed_keywords in [None,[]] else allowed_keywords
inherited_style = dict(allowed_keywords=allowed_keywords, **kwargs)
return self.__class__(key=self.key, **dict(self.kwargs, **inherited_style))

Expand Down

0 comments on commit ad97744

Please sign in to comment.