-
Notifications
You must be signed in to change notification settings - Fork 763
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
feat: add #[pyo3(from_item_all)] for FromPyObject #3120
Conversation
I think UI tests exercising the error paths would be good to have here. |
I've noticed that, and I'll figure out how to fix the tests and improve coverage today (that's why I marked this as a draft) (^^) |
It looks like you may have run the UI tests with nightly Rust? Quite a few spans have changed. Suggest rebuilding with stable. Overall I'm happy for this functionality although I'm unsure about the name I wonder if something like |
I personally perfer I'll update the PR again once I can continue to work on it. |
It seemed that I forgot some paths in the UI tests. I'll address them soon. I'm uncertain about the name too. I'm thinking about the divergence in behavior from |
This is a good point and something we overlooked when originally implementing |
Ugh. I didn't manage to make coverage rate pass codecov's check. Are declarative macro invocations blocking llvm-cov to pick them up? |
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.
This looks fine to me, the implementation is comprehensive. For some reason the coverage isn't reporting the error cases from the UI tests, but I see them here, and that normally works, so I think we are good to merge this. Thanks!
bors r+
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
This PR addresses #3112 by implementing
#[pyo3(item_all)]
#[pyo3(from_item_all)]
.