'Sphinx autodoc not using current docstring of method [closed]
When I run make html with sphinx autodoc enabled, the functions' docstrings are not the actual docstrings.
I have the path configured in my conf.py file
import os
import sys
sys.path.insert(0, os.path.abspath("../../")) # Where the module is located
The output of autodoc:
The actual docstring:
Content of my .rst file:
Subreddit
=========================================
.. autoclass:: redditeasy.Subreddit
:members:
The output of autodoc is the outdated one. I changed the docstring multiple times but autodoc just kept using the old version.
I cleared cache and uninstalled autodoc multiple times but none of them did anything. Why does this happen? How can I update the docstrings?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|


