In Python's Sphinx, how do I document attributes that are available thanks to __getattr__?
I have an instance of some config manager that allows accessing any section of the configuration via attribute that matches a section name i.e. config_manager.<section_name>.
For now I document this inside .rst file (but would prefer in code) with something like this:
.. autoclass:: ConfigManager :members: :var .<section_name>: Access any section of the configuration by its name. but this doesn't appear too prominently in the docs, even though providing this kind of access is one of the main purposes of that class.
:varappears just under class description as "Variables: bullet list". I wanted them to appear as methods too.