Skip to content

Commit

Permalink
Removed Dimensioned __call__ method
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Feb 18, 2019
1 parent f241b27 commit 4cf6729
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions holoviews/core/dimension.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,9 @@ def spec(self):


def __call__(self, spec=None, **overrides):
self.param.warning('Dimension.__call__ method has been deprecated, '
'use the clone method instead.')
if util.config.future_deprecations:
self.param.warning('Dimension.__call__ method has been deprecated, '
'use the clone method instead.')
return self.clone(spec=spec, **overrides)


Expand Down Expand Up @@ -1336,19 +1337,6 @@ def __str__(self):
def __unicode__(self):
return unicode(PrettyPrinter.pprint(self))

def __call__(self, options=None, **kwargs):
if util.config.warn_options_call:
self.param.warning(
'Use of __call__ to set options will be deprecated '
'in future. Use the equivalent opts method or use '
'the recommended .options method instead.')

if not kwargs and options is None:
return self.opts.clear()

return self.opts(options, **kwargs)


def options(self, *args, **kwargs):
"""Applies simplified option definition returning a new object.
Expand Down

0 comments on commit 4cf6729

Please sign in to comment.