Skip to content

Commit d409428

Browse files
committed
light PEP-8 79 char housekeeping
1 parent c72da6a commit d409428

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

plotly/basedatatypes.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ def append_trace(self, trace, row, col):
11481148
>>> fig.append_trace(go.Scatter(x=[1,2,3], y=[2,1,2]), row=2, col=1)
11491149
"""
11501150
warnings.warn("""\
1151-
The append_trace method is deprecated and will be removed in a future version.
1151+
The append_trace method is deprecated and will be removed in a future version.
11521152
Please use the add_trace method with the row and col parameters.
11531153
""", DeprecationWarning)
11541154

@@ -2094,7 +2094,8 @@ def save_html(self, filename, auto_open=False, responsive=False):
20942094
data['layout']['height'] = self.layout.height
20952095
data['layout']['width'] = self.layout.width
20962096

2097-
pyo.plot(data, filename=filename, show_link=False, auto_open=auto_open)
2097+
pyo.plot(data, filename=filename, show_link=False,
2098+
auto_open=auto_open)
20982099

20992100
# Static helpers
21002101
# --------------
@@ -3576,7 +3577,8 @@ def __dir__(self):
35763577
"""
35773578
# Include any active subplot values
35783579
if six.PY3:
3579-
return list(super(BaseLayoutHierarchyType, self).__dir__()) + sorted(self._subplotid_props)
3580+
return (list(super(BaseLayoutHierarchyType, self).__dir__()) +
3581+
sorted(self._subplotid_props))
35803582
else:
35813583
def get_attrs(obj):
35823584
import types

plotly/basewidget.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,12 @@ def save_image(self, filename, image_type=None, scale_factor=2):
232232

233233
# ### Validate scale_factor ###
234234
if not isinstance(scale_factor, numbers.Number) or scale_factor <= 0:
235-
raise ValueError('scale_factor must be a positive number.\n'
236-
' Received: {scale_factor}'.format(scale_factor=scale_factor))
235+
raise ValueError(
236+
'scale_factor must be a positive number.\n'
237+
' Received: {scale_factor}'.format(
238+
scale_factor=scale_factor
239+
)
240+
)
237241

238242
# Build image request
239243
# -------------------

0 commit comments

Comments
 (0)