-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python docstrings are misplaced #1685
Comments
I upvote! :) a fix would make me very happy! :) |
I took a look at the python renderer to see if this is a super easy fix, and it looks like the base class it uses is not quite flexible enough to allow this: It calls the same method ( |
There is also the fact that it produces quite antiquated-looking code. Even in this tiny example, it uses |
@seiltingcr I think this may have been fixed 2 months ago in a recent PR. --> #2443 I will be checking shortly. |
The python code generator for 3.6 and 3.7 puts the property descriptions as docstrings before the respective properties in the classes. This is incorrect because the first docstring after the class name is applied to the class, and all others disappear at runtime.
This causes the classes to be documented with the
description
s of their first properties; the properties to not have theirdescription
s; and the top-level object'sdescription
not to be generated at all.Code to reproduce:
This produces the following class for python 3.6 and 3.7:
What I would have expected:
The text was updated successfully, but these errors were encountered: