forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PyO3: upgrade to v0.23.x (pantsbuild#21657)
[Upgrade to v0.23.x of the `pyo3` crate](pantsbuild#21671): - Functions in PyO3 with `_bound` suffixes existed in PyO3 only for easing migration to the `Bound` API. They are deprecated now and new methods without the `_bound` suffixes have been re-introduced in PyO3. This PR renames call sites accordingly and updates code to also reflect that some of the new APIs (e.g., `PyTuple::new`) are now fallible. - The `IntoPy` and `ToPyObject` traits are deprecated in favor of the new `IntoPyObject` trait (which is fallible). To ease migration, this PR only disables deprecation warnings as errors in the affected files. (Unfortunately, `IntoPyObject` was not introduced in the current v0.22.x version and so we cannot migrate ahead of the upgrade (unlike what was done in pantsbuild#21670 for the new `pyclass` Sync requirement).) Migration will take place in follow-on PRs. - This PR does add an implementation of `IntoPyObject` for `&Value` to support some existing call sites.
- Loading branch information
Showing
20 changed files
with
163 additions
and
112 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.