Skip to content
This repository was archived by the owner on Aug 24, 2022. It is now read-only.

Commit 353aceb

Browse files
committed
Allow Nones in validate_nseq_float
1 parent c2f675d commit 353aceb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/matplotlib/rcsetup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def __call__(self, s):
309309
raise ValueError(err_msg.format(n=self.n, num=len(s), s=s))
310310

311311
try:
312-
return [float(val) for val in s]
312+
return [validate_float_or_None(val) for val in s]
313313
except ValueError:
314314
raise ValueError('Could not convert all entries to floats')
315315

0 commit comments

Comments
 (0)