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

chore(ci): update to python 3.10.0-rc.1 #3085

Merged
merged 5 commits into from Sep 3, 2021

Conversation

PrettyWood
Copy link
Member

Change Summary

3.10.0rc1 is out and some changes have been done on the new union | type.
I really hope the typing and types API will soon be stable...It really starts to be a mess 😅

Related issue number

Checklist

  • Unit tests for the changes exist
  • Tests pass on CI and coverage remains at 100%
  • Documentation reflects the changes where applicable
  • changes/<pull request or issue id>-<github username>.md file added describing change
    (see changes/README.md for details)
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

Copy link
Member

@tiangolo tiangolo left a comment

Choose a reason for hiding this comment

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

Ah! I was fiddling with 3.10 locally, and I was about to make a PR with the new types.UnionType. 😅

Thanks for this! 🚀

@tiangolo
Copy link
Member

Just for what it's worth, I'm adding lots of new examples to the FastAPI docs in this PR: tiangolo/fastapi#3712

I'm showing the alternatives in Python 3.6, Python 3.9, and Python 3.10 (with stuff | None instead of Optional[stuff]).

Here's a preview example: https://611c257d08a24a14fabcd742--fastapi.netlify.app/python-types/#pydantic-models

I'm including lots of tests for most of those new files. And they are all passing with this branch. 🎉

@PrettyWood PrettyWood mentioned this pull request Aug 27, 2021
5 tasks
@PrettyWood PrettyWood changed the title chore(ci): update to python 3.10rc1 chore(ci): update to python 3.10.0-rc.1 Sep 3, 2021
@PrettyWood PrettyWood merged commit 21d002e into pydantic:master Sep 3, 2021
@PrettyWood PrettyWood deleted the 3.10rc branch September 3, 2021 20:56
jpribyl pushed a commit to liquet-ai/pydantic that referenced this pull request Oct 7, 2021
* refactor: rename `is_union` into `is_union_origin`

* fix: "new" union and generic types are not the same as `typing.GenericAlias`

* chore: rename param

* fix(ci): name changed for 3.10

* fix: mypy
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

2 participants