Skip to content

Commit

Permalink
document the expected format for pyo3import attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
MusicalNinjaDad committed Apr 10, 2024
1 parent 0b78eba commit a5627ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyo3-testing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ struct Pyo3Import {
}

impl Parse for Pyo3Import {
/// Attributes parsing to Pyo3Imports should have the format:
/// `moduleidentifier: from modulename import functionname`
fn parse(input: ParseStream<'_>) -> syn::Result<Self> {
let moduleidentifier = input.parse()?;
let _colon: Colon = input.parse()?;
Expand Down

0 comments on commit a5627ef

Please sign in to comment.