Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e96138b

Browse files
range can now also get passed
(maybe this is overkill though, as a user could easily pass list(range(...)) instead)
1 parent a84c8b8 commit e96138b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/python/plotly/plotly/basedatatypes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ def _rcindex_type(d):
2525
d, f = d
2626
if f == "all":
2727
all_flag = True
28+
if type(d) == type(range(1)):
29+
d = list(d)
2830
if type(d) == type(int()):
2931
return (d, "i", all_flag)
3032
elif type(d) == type(list()):

0 commit comments

Comments
 (0)