Skip to content

Commit

Permalink
add a correctly-named submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils committed Dec 3, 2023
1 parent 1c98203 commit 857753c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ fn pdoc_pyo3_sample_library(py: Python<'_>, m: &PyModule) -> PyResult<()> {
.getattr("modules")?
.set_item("pdoc_pyo3_sample_library.explicit_submodule", explicit_submodule)?;

let correct_name_submodule = PyModule::new(py, "pdoc_pyo3_sample_library.correct_name_submodule")?;
correct_name_submodule.add_function(wrap_pyfunction!(func, correct_name_submodule)?)?;
m.add_submodule(correct_name_submodule)?;

Ok(())
}

Expand Down

0 comments on commit 857753c

Please sign in to comment.