diff --git a/doc/_templates/autosummary.rst b/doc/_templates/autosummary.rst index bf318f1d9aff..c5f90e87f016 100644 --- a/doc/_templates/autosummary.rst +++ b/doc/_templates/autosummary.rst @@ -7,7 +7,7 @@ {% if objtype in ['class'] %} .. auto{{ objtype }}:: {{ objname }} :show-inheritance: - :special-members: + :special-members: __call__ {% else %} .. auto{{ objtype }}:: {{ objname }} diff --git a/doc/devel/documenting_mpl.rst b/doc/devel/documenting_mpl.rst index 766f181ff31e..30433c340938 100644 --- a/doc/devel/documenting_mpl.rst +++ b/doc/devel/documenting_mpl.rst @@ -707,7 +707,7 @@ Then in any function accepting `~.Line2D` pass-through ``kwargs``, e.g., """ Note there is a problem for `~matplotlib.artist.Artist` ``__init__`` methods, -e.g., `matplotlib.patches.Patch.__init__`, which supports ``Patch`` ``kwargs``, +e.g., `matplotlib.patches.Patch`, which supports ``Patch`` ``kwargs``, since the artist inspector cannot work until the class is fully defined and we can't modify the ``Patch.__init__.__doc__`` docstring outside the class definition. There are some some manual hacks in this case, violating the