Skip to content

Commit 9ec713e

Browse files
committed
added fix for test with older pythons
1 parent 3419488 commit 9ec713e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

spb/series/series_2d_3d.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,13 @@ def get_label(self, use_latex=False, wrapper="$%s$"):
10291029

10301030
def _eval_color_func_helper(self, *coords):
10311031
color_func = self.evaluator.request_color_func(self.modules)
1032-
nargs = arity(color_func)
1032+
try:
1033+
nargs = arity(color_func)
1034+
except ValueError:
1035+
# TODO: remove this catch in the future.
1036+
# Currently, this is needd in order to pass tests with Python 3.10
1037+
nargs = 1
1038+
10331039
if nargs is None:
10341040
# this is the case when a function(*args) is given,
10351041
# for example np.rad2deg

0 commit comments

Comments
 (0)