You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A Python file contains two classes, each with some methods, all documented with docstrings. Documentation is generated correctly for the first class. The class documentation block for the second class in the file is copied into the block for the first method belonging to the second class.
Expected behavior
The class documentation for each class should not be copied into the function documentation block for any method.
To Reproduce
Please see attached .zip, in which the following triggers the apparent bug:
classAlpha:
"""! The class documentation of the first class. """def__init__(self):
"""! The first class's initializer. """defmoo(self):
"""! Perhaps make a bovine sound? """classBeta:
"""! The class documentation of the second class. """def__init__(self):
"""! The second class's constructor. """defmeow(self):
"""! Make a feline sound, but not purring. """
Screenshot
The errant result:
Version
Found on 1.8.17 running on Ubuntu 20.04.4 LTS, installed from Ubuntu repositories.