-
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
Add support for #[new]
which is also a #[classmethod]
#3157
Conversation
329ef94
to
756d150
Compare
First time contributor has agreed to the new licensing scheme. |
756d150
to
716de0b
Compare
716de0b
to
6c3fd07
Compare
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.
Thanks! The implementation is fine; I'm not a huge fan of a new enum variant in FnType
though I can't see an obviously better way to do it. I think better to deliver the working feature and then hopefully over time refactoring will present an option.
Some suggestions for docs & tests.
8818b2f
to
55a217f
Compare
Thanks! Have applied that feedback. |
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.
Looks great to me, thanks! I'll leave for a moment in case anyone else wants to review. If you're willing to squash that would also be appreciated; we like to keep the git history neat when we can 😊
55a217f
to
20c5618
Compare
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.
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. |
3188: Verify that macros do work without any imports r=adamreichold a=lifthrasiir Currently virtually all (positive) tests import `pyo3::prelude::*`, making it hard to detect a certain class of bugs. This PR adds an explicit test that never imports from `pyo3` to fix this. Also this fixes a minor bug from #3157 which didn't work without `use pyo3::types::PyType;`. I think this should be a part of 0.19.0 (#3187), so no additional changelog would be required (as this feature is new in 0.19.0). Co-authored-by: Kang Seonghoon <[email protected]>
Fixes #3077.