changeset 52981:d934d730c6c2

pyO3: remove useless (and wrong) `__doc__` attribute on modules PyO3 overrides the `__doc__` attributes to use the module's docstring.
author Rapha?l Gom?s <rgomes@octobus.net>
date Tue, 18 Feb 2025 11:33:20 +0100
parents 0db5f7987b13
children 0c7ac026ed63
files rust/hg-pyo3/src/utils.rs
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rust/hg-pyo3/src/utils.rs	Tue Feb 18 11:31:45 2025 +0100
+++ b/rust/hg-pyo3/src/utils.rs	Tue Feb 18 11:33:20 2025 +0100
@@ -23,7 +23,6 @@
     let dotted_name = &format!("{}.{}", package_name, name);
     let m = PyModule::new(py, name)?;
     m.add("__package__", package_name)?;
-    m.add("__doc__", "DAG operations - Rust implementation")?;
 
     let sys = PyModule::import(py, "sys")?;
     // according to the doc, we could make a static PyString out of