You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve properties formatting in interpolated docstrings.
This makes docstring interpolation a bit less sensitive to the indent
where the inserted string goes. For example, the docstring of
`add_subplot` goes from
```
**kwargs
This method also takes the keyword arguments for
the returned axes base class. The keyword arguments for the
rectilinear base class `~.axes.Axes` can be found in
the following table but there might also be other keyword
arguments if another projection is used.
adjustable: {'box', 'datalim'}
agg_filter: a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array
alpha: float or None
...
```
to
```
**kwargs
This method also takes the keyword arguments for
the returned axes base class. The keyword arguments for the
rectilinear base class `~.axes.Axes` can be found in
the following table but there might also be other keyword
arguments if another projection is used.
Properties:
adjustable: {'box', 'datalim'}
agg_filter: a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array
alpha: float or None
```
Note that this does not affect sphinx rendering as that uses
pprint_setters_rest.
Note that whether the properties list is indented relative to the
"Properties" header depends on the indent where the inserted string goes
(lines starting from the second one are *always* indented by 4
characters (8 looks like too much), but I think it's still an
(incremental) improvement.
Also make sure that the property list is preceded by a newline.
0 commit comments