PyO3 / pyo3

Rust bindings for the Python interpreter
https://pyo3.rs
Other
11.47k stars 694 forks source link

Declarative modules: make sure to emit doc comments and other attributes #4236

Closed Tpt closed 4 weeks ago

Tpt commented 4 weeks ago

Reported in https://github.com/PyO3/pyo3/issues/3900#issuecomment-2151679160

alex commented 4 weeks ago

Given the existing tests miss this, can you add a new test?

Tpt commented 4 weeks ago

Given the existing tests miss this, can you add a new test?

Not sure how to write it without having to write a proc macro. I don't think it's possible to selectively enable the missing_doc lint. Do you have an idea?

Icxolu commented 4 weeks ago

Can't you just add it to the pymodule_missing_docs ui test?

Tpt commented 4 weeks ago

Can't you just add it to the pymodule_missing_docs ui test?

Indeed. Done. Thank you!