diff --git a/codegen/compatibility.py b/codegen/compatibility.py index 7dcbe9e80ee..09f60900bca 100644 --- a/codegen/compatibility.py +++ b/codegen/compatibility.py @@ -11,7 +11,7 @@ 'new': ['Scatter', 'Bar', 'Area', 'Histogram', 'etc.']}, 'Annotations': {'base_type': list, - 'new': ['layout', 'layout.scene']}, + 'new': ['layout.Annotation', 'layout.scene.Annotation']}, 'Frames': {'base_type': list, 'new': ['Frame']}, diff --git a/plotly/graph_objs/_deprecations.py b/plotly/graph_objs/_deprecations.py index f6ea86d66cd..0cbfe3cf6fb 100644 --- a/plotly/graph_objs/_deprecations.py +++ b/plotly/graph_objs/_deprecations.py @@ -45,8 +45,8 @@ class Annotations(list): """ plotly.graph_objs.Annotations is deprecated. Please replace it with a list or tuple of instances of the following types - - plotly.graph_objs.layout.Annotations - - plotly.graph_objs.layout.scene.Annotations + - plotly.graph_objs.layout.Annotation + - plotly.graph_objs.layout.scene.Annotation """ @@ -54,15 +54,15 @@ def __init__(self, *args, **kwargs): """ plotly.graph_objs.Annotations is deprecated. Please replace it with a list or tuple of instances of the following types - - plotly.graph_objs.layout.Annotations - - plotly.graph_objs.layout.scene.Annotations + - plotly.graph_objs.layout.Annotation + - plotly.graph_objs.layout.scene.Annotation """ warnings.warn( """plotly.graph_objs.Annotations is deprecated. Please replace it with a list or tuple of instances of the following types - - plotly.graph_objs.layout.Annotations - - plotly.graph_objs.layout.scene.Annotations + - plotly.graph_objs.layout.Annotation + - plotly.graph_objs.layout.scene.Annotation """, DeprecationWarning ) super(Annotations, self).__init__(*args, **kwargs)