-
Notifications
You must be signed in to change notification settings - Fork 765
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add `#[doc(hidden)]` to the Rust module created by `#[pymodule]` * add newsfragment
- Loading branch information
1 parent
e174a04
commit fd18955
Showing
4 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fixes `missing_docs` lint to trigger on documented `#[pymodule]` functions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#![deny(missing_docs)] | ||
//! Some crate docs | ||
|
||
use pyo3::prelude::*; | ||
|
||
/// Some module documentation | ||
#[pymodule] | ||
pub fn python_module(_m: &Bound<'_, PyModule>) -> PyResult<()> { | ||
Ok(()) | ||
} | ||
|
||
fn main() {} |