Skip to content

Commit

Permalink
Fix non snake case complains for __pymethod_*
Browse files Browse the repository at this point in the history
  • Loading branch information
ahlinc committed Sep 19, 2024
1 parent ac5181c commit 605088d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyo3-macros-backend/src/pymethod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1295,6 +1295,7 @@ impl SlotDef {
let name = spec.name;
let holders = holders.init_holders(ctx);
let associated_method = quote! {
#[allow(non_snake_case)]
unsafe fn #wrapper_ident(
py: #pyo3_path::Python<'_>,
_raw_slf: *mut #pyo3_path::ffi::PyObject,
Expand Down Expand Up @@ -1418,6 +1419,7 @@ impl SlotFragmentDef {
let holders = holders.init_holders(ctx);
Ok(quote! {
impl #cls {
#[allow(non_snake_case)]
unsafe fn #wrapper_ident(
py: #pyo3_path::Python,
_raw_slf: *mut #pyo3_path::ffi::PyObject,
Expand Down

0 comments on commit 605088d

Please sign in to comment.