-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
π Improve tutorials with clearer comments and docstrings #14040
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
base: master
Are you sure you want to change the base?
Conversation
Shaptain
commented
Sep 4, 2025
- Added docstring to explain route purpose
- Clarified items store with inline comment
- Improved readability without changing behavior
β¦prove tutorial004.py withdocstrings for the route and exception handler
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
π Docs preview for commit eee7e41 at: https://ae7f8ef7.fastapitiangolo.pages.dev |
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 for your interest in contributing to FastAPI!
Generally, we prefer a PR to deal with one atomic feature/improvement. In this PR, I'm seeing many different edits and I'm not quite sure what they're all for. The linting step on the CI is failling and there seems to be some leftover comments from resolving a merge conflict.
To be able to merge this, the CI will need to go green and edits that are unrelated to the main goal of the PR should be removed. I'll put this in draft while the CI is red - feel free to mark as "ready for review" once the CI is green again and the diff looks good.