Merge #2993
2993: fix `non_snake_case` lint for `#[pyfunction]` generated code r=davidhewitt a=davidhewitt As promised in #2990 Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
This commit is contained in:
commit
c28edd0a81
1
newsfragments/2993.fixed.md
Normal file
1
newsfragments/2993.fixed.md
Normal file
|
@ -0,0 +1 @@
|
|||
Fix `non_snake_case` lint fired by generated code in `#[pyfunction]` macro.
|
|
@ -457,6 +457,7 @@ pub fn impl_wrap_pyfunction(
|
|||
const DEF: #krate::impl_::pyfunction::PyMethodDef = #methoddef;
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
#wrapper
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1545,7 +1545,6 @@ fn test_option_pyclass_arg() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[allow(non_snake_case)] // FIXME __pyfunction__foo expanded symbol is not snake case
|
||||
fn test_issue_2988() {
|
||||
#[pyfunction]
|
||||
#[pyo3(signature = (
|
||||
|
|
Loading…
Reference in a new issue