Skip to content

Commit

Permalink
chore: signature is no longer needed to provide named arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
vlaci authored and qkaiser committed Jan 8, 2024
1 parent a853288 commit b35b134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/math_tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub fn shannon_entropy(data: &[u8]) -> f64 {
entropy
}
/// Calculates Shannon entropy of data
#[pyfunction(text_signature = "(data)", name = "shannon_entropy")]
#[pyfunction(name = "shannon_entropy")]
pub fn py_shannon_entropy(py: Python, data: &[u8]) -> PyResult<f64> {
py.allow_threads(|| Ok(shannon_entropy(data)))
}
Expand Down

0 comments on commit b35b134

Please sign in to comment.