Skip to content

Commit ab60318

Browse files
committed
impl PyStringRef using py_class
1 parent 4222d87 commit ab60318

File tree

2 files changed

+125
-129
lines changed

2 files changed

+125
-129
lines changed

derive/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ fn impl_py_class(attr: AttributeArgs, item: Item) -> TokenStream2 {
374374
}| {
375375
let constructor_fn = kind.to_ctx_constructor_fn();
376376
quote! {
377-
ctx.set_attr(class, #py_name, ctx.#constructor_fn(#ty::#fn_name));
377+
ctx.set_attr(class, #py_name, ctx.#constructor_fn(Self::#fn_name));
378378
}
379379
},
380380
);

0 commit comments

Comments
 (0)