8000 πŸ“ Add docs recommending `Union` over `Optional` and migrate source examples by tiangolo Β· Pull Request #4908 Β· fastapi/fastapi Β· GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
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

πŸ“ Add docs recommending Union over Optional and migrate source examples #4908

Merged
merged 8 commits into from
May 14, 2022

Conversation

tiangolo
Copy link
Member

πŸ“ Add docs recommending Union over Optional and migrate source examples

@codecov
Copy link
codecov bot commented May 14, 2022

Codecov Report

Merging #4908 (fc0c53d) into master (c5be1b0) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master     #4908   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          531       531           
  Lines        13634     13634           
=========================================
  Hits         13634     13634           
Impacted Files Coverage Ξ”
docs_src/additional_responses/tutorial002.py 100.00% <100.00%> (ΓΈ)
docs_src/additional_responses/tutorial004.py 100.00% <100.00%> (ΓΈ)
docs_src/background_tasks/tutorial002.py 100.00% <100.00%> (ΓΈ)
docs_src/body/tutorial001.py 100.00% <100.00%> (ΓΈ)
docs_src/body_updates/tutorial001.py 100.00% <100.00%> (ΓΈ)
docs_src/body_updates/tutorial001_py39.py 100.00% <100.00%> (ΓΈ)
docs_src/dataclasses/tutorial001.py 100.00% <100.00%> (ΓΈ)
docs_src/dataclasses/tutorial002.py 100.00% <100.00%> (ΓΈ)
docs_src/dataclasses/tutorial003.py 100.00% <100.00%> (ΓΈ)
docs_src/dependencies/tutorial001.py 100.00% <100.00%> (ΓΈ)
... and 23 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Ξ” = absolute <relative> (impact), ΓΈ = not affected, ? = missing data
Powered by Codecov. Last update c5be1b0...fc0c53d. Read the comment docs.

@github-actions
Copy link
Contributor

πŸš€ Deployed on https://627f9911dc5fe760a0046e2d--fastapi.netlify.app

@github-actions
Copy link
Contributor

πŸ“ Docs preview for commit fc0c53d at: https://627f997f8e33d562842f92ac--fastapi.netlify.app

@tiangolo tiangolo merged commit ca437cd into master May 14, 2022
@tiangolo tiangolo deleted the recomment-union-over-optional branch May 14, 2022 12:00
JeanArhancet pushed a commit to JeanArhancet/fastapi that referenced this pull request Aug 20, 2022
…amples (fastapi#4908)

* πŸ“ Add docs recommending Union over Optional

* πŸ“ Update docs recommending Union over Optional

* πŸ“ Update source examples for docs, recommend Union over Optional

* πŸ“ Update highlighted lines with updated source examples

* πŸ“ Update highlighted lines in Markdown with recent code changes

* πŸ“ Update docs, use Union instead of Optional

* ♻️ Update source examples to recommend Union over Optional

* 🎨 Update highlighted code in Markdown after moving from Optional to Union
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0