-
Notifications
You must be signed in to change notification settings - Fork 9
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
gh-188: add docstrings to all functions and tidy docs #381
Conversation
What I wanted to do is what we've done for |
Co-authored-by: Nicolas Tessore <[email protected]>
I might be imagining it, but I thought we'd discussed that syntax previously. Which is why I wasn't using it. It looks like it does work. I guess the main drawback is that it implies a name for the output, which is in general up to the user. It would also make sense to do this throughout for the codebase for all |
As I remember it, we discussed this when we tried to get the return type into the returns section. Since that wasn't working well, I thought we decided to keep the return type section separate, I think there's nothing in the way of having multiple yields and returns? |
Yeah it must have been then. I will go through and change all |
Done. It looks like it was just that one |
Co-authored-by: Nicolas Tessore <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic effort, particularly with the many changes in specs! There is a remaining issue with single-line yields but it's so minuscule that I want to tackle it separately. Towards a new release!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @paddyroddy! Looks good and just needs fixing the minor pre-commit.ci failure.
pre-commit.ci autofix |
Great, could you make an issue for this? |
|
Closes #188, #369, #375. Have set #358 as upstream as it eases the process.
Adds docstrings to all functions, namely a description for all parameters in the
glass
package. I don't know the code base well, so would be good for these to be checked that they make sense.I'm also not really familiar with RST so worth checking if any of that can be improved.