diff --git a/.circleci/config.yml b/.circleci/config.yml index 5e58717cc4a..ce9de3c6d97 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -339,7 +339,7 @@ jobs: command: | cd packages/python/plotly locale - tox -e py37-core -- -a '!nodev' + tox -e py37-core -- -a '!nodev' -s no_output_timeout: 20m - run: name: Commit diff --git a/packages/python/plotly/plotly/graph_objs/_figure.py b/packages/python/plotly/plotly/graph_objs/_figure.py index e0077b12507..d907b8634c9 100644 --- a/packages/python/plotly/plotly/graph_objs/_figure.py +++ b/packages/python/plotly/plotly/graph_objs/_figure.py @@ -17450,7 +17450,7 @@ def for_each_annotation( return self def update_annotations( - self, patch, selector=None, row=None, col=None, secondary_y=None, **kwargs + self, patch=None, selector=None, row=None, col=None, secondary_y=None, **kwargs ): """ Perform a property update operation on all annotations that satisfy the @@ -17949,7 +17949,7 @@ def for_each_layout_image( return self def update_layout_images( - self, patch, selector=None, row=None, col=None, secondary_y=None, **kwargs + self, patch=None, selector=None, row=None, col=None, secondary_y=None, **kwargs ): """ Perform a property update operation on all images that satisfy the @@ -18221,7 +18221,7 @@ def for_each_shape(self, fn, selector=None, row=None, col=None, secondary_y=None return self def update_shapes( - self, patch, selector=None, row=None, col=None, secondary_y=None, **kwargs + self, patch=None, selector=None, row=None, col=None, secondary_y=None, **kwargs ): """ Perform a property update operation on all shapes that satisfy the diff --git a/packages/python/plotly/plotly/graph_objs/_figurewidget.py b/packages/python/plotly/plotly/graph_objs/_figurewidget.py index 89042ba6645..bb8d57a1d68 100644 --- a/packages/python/plotly/plotly/graph_objs/_figurewidget.py +++ b/packages/python/plotly/plotly/graph_objs/_figurewidget.py @@ -17450,7 +17450,7 @@ def for_each_annotation( return self def update_annotations( - self, patch, selector=None, row=None, col=None, secondary_y=None, **kwargs + self, patch=None, selector=None, row=None, col=None, secondary_y=None, **kwargs ): """ Perform a property update operation on all annotations that satisfy the @@ -17949,7 +17949,7 @@ def for_each_layout_image( return self def update_layout_images( - self, patch, selector=None, row=None, col=None, secondary_y=None, **kwargs + self, patch=None, selector=None, row=None, col=None, secondary_y=None, **kwargs ): """ Perform a property update operation on all images that satisfy the @@ -18221,7 +18221,7 @@ def for_each_shape(self, fn, selector=None, row=None, col=None, secondary_y=None return self def update_shapes( - self, patch, selector=None, row=None, col=None, secondary_y=None, **kwargs + self, patch=None, selector=None, row=None, col=None, secondary_y=None, **kwargs ): """ Perform a property update operation on all shapes that satisfy the diff --git a/packages/python/plotly/plotly/tests/test_core/test_update_objects/test_update_annotations.py b/packages/python/plotly/plotly/tests/test_core/test_update_objects/test_update_annotations.py index 26e589603db..54a522d2f8e 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_update_objects/test_update_annotations.py +++ b/packages/python/plotly/plotly/tests/test_core/test_update_objects/test_update_annotations.py @@ -219,6 +219,15 @@ def test_update_annotations(self): "annotations", [4], patch=dict(showarrow=False), secondary_y=True ) + def test_annotation_attributes(self): + import inspect + print(inspect.signature(self.fig.update_annotations)) + import plotly + print(plotly.__version__) + print(plotly.__file__) + self.fig.add_annotation(dict(x=1, y=1)) + self.fig.update_annotations(text="hi") + def test_update_shapes(self): ( self.fig.add_shape(opacity=0.1, fillcolor="red") @@ -237,6 +246,9 @@ def test_update_shapes(self): self.assert_update("shapes", [2, 5], patch=dict(opacity=0), col=1) self.assert_update("shapes", [4], patch=dict(opacity=0), secondary_y=True) + def test_shape_attributes(self): + self.fig.update_shapes(fillcolor="red") + def test_update_images(self): ( self.fig.add_layout_image(opacity=0.1, source="red") @@ -254,3 +266,6 @@ def test_update_images(self): self.assert_update("images", [2, 3, 4], patch=dict(opacity=0), row=1) self.assert_update("images", [2, 5], patch=dict(opacity=0), col=1) self.assert_update("images", [4], patch=dict(opacity=0), secondary_y=True) + + def test_image_attributes(self): + self.fig.update_layout_images(opacity=0.1)