-
Notifications
You must be signed in to change notification settings - Fork 1.3k
First steps towards native subclassing #5679
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
base: main
Are you sure you want to change the base?
Conversation
4ba88a8
to
4d276ea
Compare
4d276ea
to
deb6022
Compare
The cspell errors seem to be a false positive, since it's flagging words that were there before this PR. |
Yeah it does that a lot. I'll send a pr in to fix it. |
cspell action's incremental check option doesn't look working that good |
Probably because it checks the entire file instead of just the changes (from what I see). |
The issue is it runs this command, which fails sometimes:
|
@@ -172,7 +172,7 @@ mod _bz2 { | |||
|
|||
#[pyattr] | |||
#[pyclass(name = "BZ2Compressor")] | |||
#[derive(PyPayload)] | |||
#[derive()] |
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.
empty derive?
@@ -266,8 +266,8 @@ def LoadLibrary(self, name): | |||
|
|||
cdll = LibraryLoader(CDLL) | |||
|
|||
test_byte_array = create_string_buffer(b"Hello, World!\n") | |||
assert test_byte_array._length_ == 15 | |||
# test_byte_array = create_string_buffer(b"Hello, World!\n") |
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.
is this intended?
if let Meta::NameValue(syn::MetaNameValue { | ||
value: | ||
syn::Expr::Path(syn::ExprPath { | ||
qself: None, path, .. |
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.
please add qself
to rust-more.txt
/// | ||
/// # Safety | ||
/// | ||
/// `type_id` must be accurate. |
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 understand wrong type_id can cause a bug, but not sure how it can make unsafety. Do you have a scenario?
Not very ergonomic yet, and there are definitely some soundness holes atm, but I aim to fix those in a follow-up.