pyo3/tests/hygiene/pymodule.rs

9 lines
263 B
Rust
Raw Normal View History

2021-10-02 18:44:32 +00:00
#![no_implicit_prelude]
#![allow(unused_variables)]
#[::pyo3::pymodule]
fn my_module(_py: ::pyo3::Python, m: &::pyo3::types::PyModule) -> ::pyo3::PyResult<()> {
m.add_function(::pyo3::wrap_pyfunction!(do_something, m)?)?;
::std::result::Result::Ok(())
}