We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The "Returns:" section is not displayed for a function with the return value annotated.
Run the following commands:
git clone https://github.com/mkdocstrings/griffe-typingdoc.git cd griffe-typingdoc/ make setup
Append the following lines to the docs/examples/simple.py:
docs/examples/simple.py
def return_value( param: Annotated[int, Doc("Parameter")], ) -> Annotated[int, Doc("Returned value.")]: """Showing off return values."""
Then serve the documentation:
make docs
Not applicable. See the additional context section for the screenshot of the generated documentation.
In the documentation section for return_value function, the "Returns:" section is displayed with the description of the return value "Returned value."
return_value
python -m griffe_typingdoc.debug # | xclip -selection clipboard
griffe-typingdoc
Screenshot of the generated documentation:
The text was updated successfully, but these errors were encountered:
Thanks for the report, I was able to confirm. Fixing ASAP!
Sorry, something went wrong.
fix: Support simple return annotations
b4afabe
Issue #9: #9
Fixed in v0.2.5 🙂
pawamoy
No branches or pull requests
Description of the bug
The "Returns:" section is not displayed for a function with the return value annotated.
To Reproduce
Run the following commands:
Append the following lines to the
docs/examples/simple.py
:Then serve the documentation:
Full traceback
Not applicable. See the additional context section for the screenshot of the generated documentation.
Expected behavior
In the documentation section for
return_value
function, the "Returns:" section is displayed with the description of the return value "Returned value."Environment information
python -m griffe_typingdoc.debug # | xclip -selection clipboard
griffe-typingdoc
v0.2.4+editableAdditional context
Screenshot of the generated documentation:
The text was updated successfully, but these errors were encountered: