-
-
Notifications
You must be signed in to change notification settings - Fork 32
Support 'Yields' in Google-style docstrings #89
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
Comments
Hello @jvfe, thank you for the detailed feature request! I'm totally in favor of adding support for Yields section 🙂 |
Sure, I could try giving it a go! What did you have in mind? Would it be implementing a |
Oh, I realize I never answered, so sorry 🙇 |
It will be released in version 0.13 as this would not be caught by mkdocstrings 0.16. |
I was using mkdocstrings, but I think this issue is specifically related to pytkdocs.
Is your feature request related to a problem? Please describe.
Yes. I had a docstring of a generator that I was using mkdocstrings (v0.14.0) to compile the documentation for, something like:
Like specified in the Google style-guide.
But it was being rendered like
!!! yields !!! int ...
Describe the solution you'd like
I'd like to be able to use
Yields
orYield
for generators.Describe alternatives you've considered
Replacing
Yields
forReturns
works as expected, but that is not an optimal solution.Additional context
I've noticed napoleon seems to support both
Yields
andYield
for these cases.And thanks for making mkdocstrings, it's really saved me a lot of time.
The text was updated successfully, but these errors were encountered: