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

Skip to content

Commit 3a71055

Browse files
committed
Fixed validate_markevery
1 parent 9a2def6 commit 3a71055

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
@@ -568,7 +568,7 @@ def validate_markevery(s):
568568
raise ValueError("'markevery' tuple with first element of "
569569
"type float must have all elements of type "
570570
"float")
571-
if not isinstance(tupType, (float, int)):
571+
if tupType is not float and tupType is not int:
572572
raise TypeError("'markevery' tuple is of an invalid type")
573573
if isinstance(s, list):
574574
if not all(isinstance(e, int) for e in s):

0 commit comments

Comments
 (0)