We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fab582 commit 945f8ccCopy full SHA for 945f8cc
packages/python/plotly/plotly/figure_factory/utils.py
@@ -1,6 +1,5 @@
1
from __future__ import absolute_import
2
3
-import collections
4
import decimal
5
import six
6
@@ -24,9 +23,13 @@
24
23
validate_scale_values,
25
)
26
+try:
27
+ from collections.abc import Sequence
28
+except ImportError:
29
+ from collections import Sequence
30
31
def is_sequence(obj):
- return isinstance(obj, collections.Sequence) and not isinstance(obj, str)
32
+ return isinstance(obj, Sequence) and not isinstance(obj, str)
33
34
35
def validate_index(index_vals):
0 commit comments