MNT: Add type information to rcParams (#32159) · matplotlib/matplotlib@f38d4ac · GitHub
Skip to content

Commit f38d4ac

Browse files
authored
MNT: Add type information to rcParams (#32159)
* MNT: Add type information to rcParams The added `_Param.type` attribute is currently used only for documentation, not for validation. This allows to be more flexible and conveniently use type annotations such as int and list[float] | None, but also strings such as ":mpltype:`color`". * Apply suggestions from code review Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> * Add review suggestions
1 parent ac55a36 commit f38d4ac

3 files changed

Lines changed: 451 additions & 83 deletions

File tree

doc/_static/mpl.css

Lines changed: 5 additions & 0 deletions

doc/sphinxext/rcparams.py

Lines changed: 17 additions & 1 deletion

0 commit comments

Comments
 (0)