Skip to content

Commit abff982

Browse files
committed
REQ to REQUIRED
1 parent 86f61bc commit abff982

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

plotly/tools.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
'rgb(227, 119, 194)', 'rgb(127, 127, 127)',
2929
'rgb(188, 189, 34)', 'rgb(23, 190, 207)']
3030

31-
REQ_GANTT_KEYS = ['Task', 'Start', 'Finish']
31+
REQUIRED_GANTT_KEYS = ['Task', 'Start', 'Finish']
3232

3333

3434
# Warning format
@@ -1459,11 +1459,14 @@ def _validate_gantt(df):
14591459
"""
14601460
if _pandas_imported and isinstance(df, pd.core.frame.DataFrame):
14611461
# validate that df has all the required keys
1462-
for key in REQ_GANTT_KEYS:
1462+
for key in REQUIRED_GANTT_KEYS:
14631463
if key not in df:
14641464
raise exceptions.PlotlyError("The columns in your data"
14651465
"frame must include the "
1466-
"keys".format(REQ_GANTT_KEYS))
1466+
"keys".format(
1467+
REQUIRED_GANTT_KEYS
1468+
)
1469+
)
14671470

14681471
num_of_rows = len(df.index)
14691472
chart = []

0 commit comments

Comments
 (0)