From 26358e56c773a8c1e7404ea8e0fa3fb941478194 Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Mon, 17 Apr 2017 15:40:39 -0400 Subject: [PATCH] Deprecate using function annotations to specify interactive controls. Fixes #1264. --- ipywidgets/widgets/interaction.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ipywidgets/widgets/interaction.py b/ipywidgets/widgets/interaction.py index 92d9a4477d..c80a1a6375 100644 --- a/ipywidgets/widgets/interaction.py +++ b/ipywidgets/widgets/interaction.py @@ -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