Commit 815421b
committed
Add autoclass entry for Artist API doc.
Adding an autoclass entry in the Artist API ensures that that class
appears in the intersphinx `build/html/object.inv`, as can be checked by
```
"matplotlib.artist.Artist" in (
sphinx.ext.intersphinx.read_inventory(
open("build/html/objects.inv", "rb"), None, lambda *args: None)[
"py:class"])
```
(now returns True).
This allows other projects to link to that class in their docs using
```
`Artist` <matplotlib.artist.Artist>
```
This possibility used to be present, but disappeared when the Artist API
doc got refactored. (Other classes that appear in the API docs are fine
as they already use autoclass.)1 parent 72cea62 commit 815421b
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
0 commit comments