-
Notifications
You must be signed in to change notification settings - Fork 287
Update PyO3 to 0.20 #1003
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
Update PyO3 to 0.20 #1003
Conversation
By far the bulk of the work is migrating for https://pyo3.rs/main/migration.html#pydictget_item-now-returns-a-result |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1003 +/- ##
==========================================
- Coverage 93.06% 93.05% -0.01%
==========================================
Files 106 106
Lines 15739 15720 -19
Branches 35 35
==========================================
- Hits 14648 14629 -19
Misses 1084 1084
Partials 7 7
Continue to review full report in Codecov by Sentry.
|
CodSpeed Performance ReportMerging #1003 will improve performances by 28.87%Comparing Summary
Benchmarks breakdown
|
8fc542f
to
b34df53
Compare
b34df53
to
cff1afe
Compare
please review |
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.
LGTM
@@ -72,7 +72,7 @@ impl PydanticCustomError { | |||
} | |||
} | |||
|
|||
#[getter(type)] | |||
#[getter(r#type)] |
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.
I didn't see what forced this change from [pyo3 changelog]
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.
I believe it was the switch to syn 2.0 changing the way the proc macro parsed idents.
Change Summary
Updates PyO3 to 0.20.
(For now in draft and building against the git dependency, will update this when the release is done.)
Related issue number
Fixes #761
Fixes pydantic/pydantic#6584
Checklist
pydantic-core
(except for expected changes)Selected Reviewer: @samuelcolvin