68ec6de0c9
* Use single-arg form for `#[pymodule]` functions in docs and tests * Update guide/src/function.md Co-authored-by: Icxolu <10486322+Icxolu@users.noreply.github.com> * Add test of two-argument module function * Fix new test --------- Co-authored-by: Icxolu <10486322+Icxolu@users.noreply.github.com>
9 lines
124 B
Rust
9 lines
124 B
Rust
use pyo3::prelude::*;
|
|
|
|
#[pymodule(some_arg)]
|
|
fn module(m: &Bound<'_, PyModule>) -> PyResult<()> {
|
|
Ok(())
|
|
}
|
|
|
|
fn main(){}
|