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 and tests for Python 3.9 and Python 3.10 #3712

Merged
merged 14 commits into from Jan 7, 2022
Merged

Conversation

tiangolo
Copy link
Owner

✨ Add docs and tests for Python 3.9 and Python 3.10

Update all the docs, including Python Types Intro, and up to (and including) all the Tutorial - User Guide. And for every relevant example include alternatives and explanations for Python 3.6, Python 3.9, and Python 3.10.

Add the equivalent tests for those new sources.

This depends on pydantic/pydantic#3085 being merged and released, with that branch of Pydantic, all these tests pass.

@codecov
Copy link

codecov bot commented Aug 17, 2021

Codecov Report

Merging #3712 (27c7336) into master (83f6781) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##            master     #3712     +/-   ##
===========================================
  Coverage   100.00%   100.00%             
===========================================
  Files          409       498     +89     
  Lines        10270     12626   +2356     
===========================================
+ Hits         10270     12626   +2356     
Impacted Files Coverage Δ
docs_src/app_testing/app_b/main.py 100.00% <ø> (ø)
docs_src/app_testing/app_b/test_main.py 100.00% <100.00%> (ø)
docs_src/app_testing/app_b_py310/main.py 100.00% <100.00%> (ø)
docs_src/app_testing/app_b_py310/test_main.py 100.00% <100.00%> (ø)
docs_src/background_tasks/tutorial002_py310.py 100.00% <100.00%> (ø)
docs_src/body/tutorial001_py310.py 100.00% <100.00%> (ø)
docs_src/body_fields/tutorial001_py310.py 100.00% <100.00%> (ø)
docs_src/body_multiple_params/tutorial001_py310.py 100.00% <100.00%> (ø)
docs_src/body_multiple_params/tutorial003_py310.py 100.00% <100.00%> (ø)
docs_src/body_nested_models/tutorial009_py39.py 100.00% <100.00%> (ø)
... and 86 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 83f6781...27c7336. Read the comment docs.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 17, 2021

@github-actions github-actions bot temporarily deployed to commit August 17, 2021 20:57 Inactive
@github-actions
Copy link
Contributor

📝 Docs preview for commit 80b30c3 at: https://611c22ce4352b40959fdf630--fastapi.netlify.app

@github-actions
Copy link
Contributor

📝 Docs preview for commit 80b30c3 at: https://611c22f61d1e820c1930ebf0--fastapi.netlify.app

@github-actions github-actions bot temporarily deployed to commit August 17, 2021 21:08 Inactive
@github-actions
Copy link
Contributor

📝 Docs preview for commit 981967e at: https://611c256d94bc50147bbea5dd--fastapi.netlify.app

@github-actions
Copy link
Contributor

📝 Docs preview for commit 981967e at: https://611c257d08a24a14fabcd742--fastapi.netlify.app

@tiangolo
Copy link
Owner Author

All the tests are passing when using this branch of Pydantic pydantic/pydantic#3085

Here are the Python 3.10 results: https://github.com/tiangolo/fastapi/runs/3355049415

@github-actions github-actions bot temporarily deployed to commit August 17, 2021 21:20 Inactive
@github-actions
Copy link
Contributor

📝 Docs preview for commit 9599f76 at: https://611c284c0789981273ef31cf--fastapi.netlify.app

@github-actions
Copy link
Contributor

📝 Docs preview for commit 9599f76 at: https://611c28622d508310f3a95776--fastapi.netlify.app

pyproject.toml Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
@github-actions github-actions bot temporarily deployed to commit October 7, 2021 16:04 Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Oct 7, 2021

📝 Docs preview for commit ec5fb55 at: https://615f1ac0e320f34106feec36--fastapi.netlify.app

@PrettyWood
Copy link
Contributor

Hi @tiangolo
Now that pydantic 1.9 is out, I guess a new version of fastapi supporting 3.10 can be released 🎉

@github-actions github-actions bot temporarily deployed to commit January 7, 2022 09:55 Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2022

📝 Docs preview for commit 2222c5a at: https://61d80e1aa9fb32d6a2fc259d--fastapi.netlify.app

@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2022

📝 Docs preview for commit 2222c5a at: https://61d80e33998128d578061235--fastapi.netlify.app

@github-actions github-actions bot temporarily deployed to commit January 7, 2022 10:51 Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2022

📝 Docs preview for commit a65820a at: https://61d81b5a6113e1e1c492999b--fastapi.netlify.app

@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2022

📝 Docs preview for commit a65820a at: https://61d81b588e8680d269020f6e--fastapi.netlify.app

@github-actions github-actions bot temporarily deployed to commit January 7, 2022 11:21 Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2022

📝 Docs preview for commit 3d33509 at: https://61d822678e8680d953021056--fastapi.netlify.app

@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2022

📝 Docs preview for commit 3d33509 at: https://61d82273fa744adaa160ad70--fastapi.netlify.app

@github-actions github-actions bot temporarily deployed to commit January 7, 2022 13:53 Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2022

📝 Docs preview for commit 6006983 at: https://61d845f9aee1c916a8663cba--fastapi.netlify.app

@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2022

📝 Docs preview for commit 6006983 at: https://61d845faaee1c91635663cef--fastapi.netlify.app

@github-actions github-actions bot temporarily deployed to commit January 7, 2022 14:00 Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2022

📝 Docs preview for commit 27c7336 at: https://61d847b87d32b20cc9f79fb7--fastapi.netlify.app

@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2022

📝 Docs preview for commit 27c7336 at: https://61d847bf47941015d7fe7746--fastapi.netlify.app

@tiangolo tiangolo merged commit d08a062 into master Jan 7, 2022
@tiangolo tiangolo deleted the python3.9-3.10 branch January 7, 2022 14:11
JeanArhancet pushed a commit to JeanArhancet/fastapi that referenced this pull request Aug 20, 2022
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
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.

None yet

4 participants