Skip to content

Commit 3056f20

Browse files
committed
Merge pull request #119 from plotly/andrew-remove-import-all
Andrew remove import all
2 parents f1c4593 + 7b05002 commit 3056f20

File tree

8 files changed

+100
-153
lines changed

8 files changed

+100
-153
lines changed

Diff for: plotly/graph_objs/__init__.py

+9-35
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,14 @@
55
This package imports definitions for all of Plotly's graph objects. For more
66
information, run help(Obj) on any of the following objects defined here.
77
8+
The reason for the package graph_objs and the module graph_objs is to provide
9+
a clearer API for users.
810
911
"""
10-
from __future__ import absolute_import
11-
12-
from plotly.graph_objs.graph_objs import *
13-
14-
__all__ = ["Data",
15-
"Annotations",
16-
"Area",
17-
"Bar",
18-
"Box",
19-
"Contour",
20-
"Heatmap",
21-
"Histogram",
22-
"Histogram2d",
23-
"Histogram2dContour",
24-
"Scatter",
25-
"Annotation",
26-
"AngularAxis",
27-
"ColorBar",
28-
"Contours",
29-
"ErrorX",
30-
"ErrorY",
31-
"Figure",
32-
"Font",
33-
"Layout",
34-
"Legend",
35-
"Line",
36-
"Margin",
37-
"Marker",
38-
"RadialAxis",
39-
"Stream",
40-
"Trace",
41-
"XAxis",
42-
"XBins",
43-
"YAxis",
44-
"YBins"]
12+
from . graph_objs import (
13+
Data, Annotations, Area, Bar, Box, Contour, Heatmap, Histogram,
14+
Histogram2d, Histogram2dContour, Scatter, Annotation, AngularAxis,
15+
ColorBar, Contours, ErrorX, ErrorY, Figure, Font, Layout, Legend,
16+
Line, Margin, Marker, RadialAxis, Stream, Trace, XAxis, XBins, YAxis,
17+
YBins
18+
)

Diff for: plotly/graph_objs/graph_objs.py

+1-31
Original file line numberDiff line numberDiff line change
@@ -40,37 +40,7 @@
4040
from collections import OrderedDict
4141
import json
4242

43-
__all__ = ["Data",
44-
"Annotations",
45-
"Area",
46-
"Bar",
47-
"Box",
48-
"Contour",
49-
"Heatmap",
50-
"Histogram",
51-
"Histogram2d",
52-
"Histogram2dContour",
53-
"Scatter",
54-
"Annotation",
55-
"AngularAxis",
56-
"ColorBar",
57-
"Contours",
58-
"ErrorX",
59-
"ErrorY",
60-
"Figure",
61-
"Font",
62-
"Layout",
63-
"Legend",
64-
"Line",
65-
"Margin",
66-
"Marker",
67-
"RadialAxis",
68-
"Stream",
69-
"Trace",
70-
"XAxis",
71-
"XBins",
72-
"YAxis",
73-
"YBins"]
43+
__all__ = None
7444

7545
# TODO: BIG ONE, how should exceptions bubble up in this inheritance scheme?
7646
# TODO: related, WHAT exceptions should bubble up?

0 commit comments

Comments
 (0)