From ff32382080b80efee6ecf2ef0fa9c789a35a2463 Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Sun, 6 Oct 2019 15:52:18 -0400 Subject: [PATCH 1/2] __all__ for figure_factory and io --- .../plotly/plotly/figure_factory/__init__.py | 17 +++++++++++++++++ packages/python/plotly/plotly/io/__init__.py | 6 ++++++ 2 files changed, 23 insertions(+) diff --git a/packages/python/plotly/plotly/figure_factory/__init__.py b/packages/python/plotly/plotly/figure_factory/__init__.py index 6ce7217803e..f77c9914e1f 100644 --- a/packages/python/plotly/plotly/figure_factory/__init__.py +++ b/packages/python/plotly/plotly/figure_factory/__init__.py @@ -30,3 +30,20 @@ if optional_imports.get_module("pandas") is not None: from plotly.figure_factory._county_choropleth import create_choropleth + +__all__ = ["create_2d_density", + "create_annotated_heatmap", + "create_bullet", + "create_candlestick", + "create_dendrogram", + "create_distplot", + "create_facet_grid", + "create_gantt", + "create_ohlc", + "create_quiver", + "create_scatterplotmatrix", + "create_streamline", + "create_table", + "create_ternary_contour", + "create_trisurf", + "create_violin"] diff --git a/packages/python/plotly/plotly/io/__init__.py b/packages/python/plotly/plotly/io/__init__.py index 63a30e8456e..bfe6c0a77da 100644 --- a/packages/python/plotly/plotly/io/__init__.py +++ b/packages/python/plotly/plotly/io/__init__.py @@ -10,3 +10,9 @@ from ._renderers import renderers, show from . import base_renderers + +__all__ = ["to_image", "write_image", + "to_json", "from_json", "read_json", "write_json", + "templates", "to_templated", + "to_html", "write_html", + "renderers", "show", "base_renderers"] From 61c40b41909b62da5d68da91dfdb6304d7e5a87f Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Sun, 6 Oct 2019 15:56:38 -0400 Subject: [PATCH 2/2] blacken --- .../plotly/plotly/figure_factory/__init__.py | 34 ++++++++++--------- packages/python/plotly/plotly/io/__init__.py | 20 ++++++++--- 2 files changed, 33 insertions(+), 21 deletions(-) diff --git a/packages/python/plotly/plotly/figure_factory/__init__.py b/packages/python/plotly/plotly/figure_factory/__init__.py index f77c9914e1f..2b686c8ce3e 100644 --- a/packages/python/plotly/plotly/figure_factory/__init__.py +++ b/packages/python/plotly/plotly/figure_factory/__init__.py @@ -31,19 +31,21 @@ if optional_imports.get_module("pandas") is not None: from plotly.figure_factory._county_choropleth import create_choropleth -__all__ = ["create_2d_density", - "create_annotated_heatmap", - "create_bullet", - "create_candlestick", - "create_dendrogram", - "create_distplot", - "create_facet_grid", - "create_gantt", - "create_ohlc", - "create_quiver", - "create_scatterplotmatrix", - "create_streamline", - "create_table", - "create_ternary_contour", - "create_trisurf", - "create_violin"] +__all__ = [ + "create_2d_density", + "create_annotated_heatmap", + "create_bullet", + "create_candlestick", + "create_dendrogram", + "create_distplot", + "create_facet_grid", + "create_gantt", + "create_ohlc", + "create_quiver", + "create_scatterplotmatrix", + "create_streamline", + "create_table", + "create_ternary_contour", + "create_trisurf", + "create_violin", +] diff --git a/packages/python/plotly/plotly/io/__init__.py b/packages/python/plotly/plotly/io/__init__.py index bfe6c0a77da..6b96585c334 100644 --- a/packages/python/plotly/plotly/io/__init__.py +++ b/packages/python/plotly/plotly/io/__init__.py @@ -11,8 +11,18 @@ from . import base_renderers -__all__ = ["to_image", "write_image", - "to_json", "from_json", "read_json", "write_json", - "templates", "to_templated", - "to_html", "write_html", - "renderers", "show", "base_renderers"] +__all__ = [ + "to_image", + "write_image", + "to_json", + "from_json", + "read_json", + "write_json", + "templates", + "to_templated", + "to_html", + "write_html", + "renderers", + "show", + "base_renderers", +]