Skip to content

Commit

Permalink
Deprecate using function annotations to specify interactive controls.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed Apr 17, 2017
1 parent 69ae4b1 commit 26358e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ipywidgets/widgets/interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def _yield_abbreviations_for_parameter(param, kwargs):
if name in kwargs:
value = kwargs.pop(name)
elif ann is not empty:
warn("Using function annotations to implicitly specify interactive controls is deprecated. Use an explicit keyword argument for the parameter instead.", DeprecationWarning)
value = ann
elif default is not empty:
value = default
Expand Down

0 comments on commit 26358e5

Please sign in to comment.