-
Notifications
You must be signed in to change notification settings - Fork 0
Added improved error messages to the derive FromPyObject macro for ba… #1
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
Open
batconjurer
wants to merge
209
commits into
main
Choose a base branch
from
enhanced_extract_type_errors
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or 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
…sic structs and enums
… in FromPyObject::extract
…on tuples and newtype structs/tuples
Simplify code generated for for_each_method_def and for_each_proto_slot
Co-authored-by: Georg Brandl <[email protected]>
Co-authored-by: Georg Brandl <[email protected]>
Co-authored-by: Georg Brandl <[email protected]>
Co-authored-by: Georg Brandl <[email protected]>
Co-authored-by: Georg Brandl <[email protected]>
Co-authored-by: Georg Brandl <[email protected]>
Co-authored-by: Georg Brandl <[email protected]>
If we got more then one file, only take those that contain the arch name. For ubuntu 20.04 with host architecture x86_64 and a foreign architecture of armhf this reduces the number of candidates to 1: $ find /usr/lib/python3.8/ -name '_sysconfigdata*.py' -not -lname '*' /usr/lib/python3.8/_sysconfigdata__x86_64-linux-gnu.py /usr/lib/python3.8/_sysconfigdata__arm-linux-gnueabihf.py CHANGELOG.md: add entry for cross-sysconfigdata filter on arch commit changelog: 1. initial 2. if filtered list is empty, use pre filtered. 3. clippy is_empty and cloned
…ted work on TypeError message on Enums
bench: don't alert on CI benchmark changes
guide: bump mdbook to 0.4.10
) * Add support to IndexMap * Fix indexmap version to 1.6.2 * Remove code duplication by mistake * Fix ambiguity in test * Minor change for doc.rs * Add to lib.rs docstring * Add indexmap to conversion table * Add indexmap flag in docs.rs action * Add indexmap feature to CI * Add note in changelog * Use with_gil in tests * Move code to src/conversions/indexmap.rs * Add PR number to CHANGELOG Co-authored-by: David Hewitt <[email protected]> * Add round trip test * Fix issue in MSRV Ubuntu build * Fix Github workflow syntax * Yet Another Attempt to Fix MSRV Ubuntu build * Specify hashbrown to avoid ambiguity in CI * Add suggestions * More flexible version for indexmap * Add documentation * Address PR comments * Export indexmap for docs Co-authored-by: David Hewitt <[email protected]>
guide: add latest symlink
pypy: fix FFI definition of Py_Buffer
err: don't use with_gil internally in PyErr::new()
docs: use pyo3.rs/latest instead of pyo3.rs/main
testing: use `mod tests` instead of `mod test`
rust: updates for rust & clippy 1.54
readme: slightly improve getting started notes
pyo3-pytests: don't set profile in Cargo.toml
Co-authored-by: David Hewitt <[email protected]>
…ract_type_errors
…catenating all error messages
…emoved all unsafe code from macro generated code. Two other small fixes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…sic structs and enums
Thank you for contributing to pyo3!
Please consider adding the following to your pull request:
Be aware the CI pipeline will check your pull request for the following:
cargo testormake testif you need to test examples)make clippy)cargo fmt)black . --check. You can install black withpip install black)tox; you can do run it usingmake test_py.You can run a similar set of checks as the CI pipeline using
make test.