Skip to content

📝 Update docs/en/docs/tutorial/body.md with Python 3.10 union type example#11415

Merged
tiangolo merged 4 commits intofastapi:masterfrom
rangzen:patch-1
Aug 15, 2024
Merged

📝 Update docs/en/docs/tutorial/body.md with Python 3.10 union type example#11415
tiangolo merged 4 commits intofastapi:masterfrom
rangzen:patch-1

Conversation

@rangzen
Copy link
Copy Markdown
Contributor

@rangzen rangzen commented Apr 7, 2024

Small update for the union note because the default example is from the non-default displayed version.

@tiangolo
Copy link
Copy Markdown
Member

tiangolo commented Apr 7, 2024

📝 Docs preview for commit b0759c4 at: https://bfd4257d.fastapitiangolo.pages.dev

@rangzen
Copy link
Copy Markdown
Contributor Author

rangzen commented Apr 7, 2024

Looks good, see https://bfd4257d.fastapitiangolo.pages.dev/tutorial/body/#request-body-path-query-parameters

@alejsdev alejsdev added the docs Documentation about how to use FastAPI label Apr 13, 2024
@svlandeg svlandeg self-assigned this Aug 9, 2024
Copy link
Copy Markdown
Member

@svlandeg svlandeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I took the liberty of updating it with master.

I was reading through this page recently, and I actually noticed this same occurrence. I also thought it was weird to comment only on the Python 3.8-style of code (probably due to historical reasons...). Anyway, I definitely think this edit is an improvement and will avoid confusion by readers.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Aug 9, 2024

@svlandeg svlandeg removed their assignment Aug 12, 2024
@tiangolo tiangolo changed the title Update body.md with Python 3.10 union type example 📝 Update docs/en/docs/tutorial/body.md with Python 3.10 union type example Aug 15, 2024
@github-actions
Copy link
Copy Markdown
Contributor

@tiangolo
Copy link
Copy Markdown
Member

Good idea, thanks @rangzen! 🚀

In fact, I updated it a bit to mention Python 3.10 first, that's the most important. 😎

Thanks @svlandeg for your help! 🍰

@tiangolo tiangolo merged commit 86c8f4f into fastapi:master Aug 15, 2024
black-redoc pushed a commit to black-redoc/fastapi that referenced this pull request Aug 16, 2024
…example (fastapi#11415)

Co-authored-by: svlandeg <svlandeg@github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
black-redoc pushed a commit to black-redoc/fastapi that referenced this pull request Aug 17, 2024
…example (fastapi#11415)

Co-authored-by: svlandeg <svlandeg@github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
s-rigaud pushed a commit to s-rigaud/fastapi that referenced this pull request Jan 23, 2025
…example (fastapi#11415)

Co-authored-by: svlandeg <svlandeg@github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation about how to use FastAPI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants