kalekundert / autoclasstoc

Sphinx plugin to make easier-to-navigate class documentation.
MIT License
18 stars 7 forks source link

Support annotation-only attributes #32

Closed haiiliin closed 1 year ago

haiiliin commented 2 years ago

Currently, annotation-only attributes are not supported, for example, this is supported:

class myclass:
    #: This is an attribute
    an_attribute: int = 1

But this is not supported:

class myclass:
    #: This is an annotation-only attribute
    annotation_only_attribute: int

Both will be parsed by Sphinx, but the second one will not appear in the TOC.