8000 Fix validate_markevery docstring markup. · QuLogic/matplotlib@f96a463 · GitHub
[go: up one dir, main page]

Skip to content

Commit f96a463

Browse files
committed
Fix validate_markevery docstring markup.
Make type lists fit in a single line. A strict reading suggests that all types should be separated with ` or ` rather than a comma, but avoiding a backslash continuation seems more useful. Also, *s* can also be a str.
1 parent 65cf35b commit f96a463

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/matplotlib/rcsetup.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -485,14 +485,11 @@ def validate_markevery(s):
485485
486486
Parameters
487487
----------
488-
s : None, int, float, slice, length-2 tuple of ints,
489-
length-2 tuple of floats, list of ints
488+
s : None, int, (int, int), slice, float, (float, float), or list[int]
490489
491490
Returns
492491
-------
493-
None, int, float, slice, length-2 tuple of ints,
494-
length-2 tuple of floats, list of ints
495-
492+
None, int, (int, int), slice, float, (float, float), or list[int]
496493
"""
497494
# Validate s against type slice float int and None
498495
if isinstance(s, (slice, float, int, type(None))):

0 commit comments

Comments
 (0)
0