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
{{ message }}
This repository was archived by the owner on Oct 20, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 20, 2026. It is now read-only.
Would an example of this be if a type annotation is present for the return type but there is no docstring for it (Returns: ...), the generated mkdocs would still have a Returns section?
No, I was talking about picking module variables, class variables and instance variables (in init methods) that have no docstrings, to be consistent with the selection method for other objects (we currently select methods/classes that have no docstrings as well, and rendering them or not based on configuration).
But what you wrote would indeed be an interesting feature. Sometimes the method/function name is self-explanatory about what it returns, so printing its return type without having to add Returns: would be nice.
Activity
cs01 commentedon Jan 26, 2020
Would an example of this be if a type annotation is present for the return type but there is no docstring for it (
Returns: ...), the generated mkdocs would still have aReturnssection?pawamoy commentedon Jan 27, 2020
No, I was talking about picking module variables, class variables and instance variables (in init methods) that have no docstrings, to be consistent with the selection method for other objects (we currently select methods/classes that have no docstrings as well, and rendering them or not based on configuration).
But what you wrote would indeed be an interesting feature. Sometimes the method/function name is self-explanatory about what it returns, so printing its return type without having to add
Returns:would be nice.ofek commentedon Apr 1, 2020
We very much need this 😄
ofek commentedon Apr 24, 2020
Any update?
pawamoy commentedon Apr 24, 2020
Sorry, nope, I've been working on other things. I'll try to work on this these next few days.
ofek commentedon May 12, 2020
Has this been implemented?
pawamoy commentedon May 12, 2020
Still not @ofek 😅 But I'm currently working on refactoring the attribute parser, which will make it easier to implement this feature☺️
So, it's on the way!