Repository navigation
[pyOpenMS] Fix docutils errors in nanobind docstrings (#9460) - #9629
Merged
Merged
Conversation
The Sphinx readthedocs build emitted 6 docutils ERRORs from binding
docstrings:
- OpenMS' trailing-underscore C++ member names (data_, fit_data_,
transformations_, lambda_) leaked into docstrings, where RST reads a
word ending in "_" at a word boundary as a hyperlink reference
("Unknown target name"). Wrapped these in double-backtick inline
literals so RST treats them as code.
- FeatureFinderMetaboIdentCompound's "Constructor:"/"Arguments:" blocks
parsed as block quotes, so the deeper-indented continuation line
tripped "Unexpected indentation". Converted them to literal blocks
(::) so the indented text is taken verbatim.
Verified: clean Sphinx rebuild now reports 0 docutils errors (was 6);
remaining warnings are unrelated (intersphinx/hoverxref config). Part
of #9460 (pyOpenMS readthedocs build).
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Closed
3 tasks
timosachsenberg
added a commit
that referenced
this pull request
Jun 22, 2026
- ProSE (#9633, #9644): fix entry for protein-level FDR now applied for single-file runs; was previously silently skipped unless -out_merged was used in multi-file mode - pyOpenMS (#9629): fix entry for 6 docutils ERROR-level warnings in nanobind binding docstrings resolved Claude-Session: https://claude.ai/code/session_01XUrYEuLbeCJznCzV51iJjk Co-authored-by: Claude <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Fixes the 6 docutils
ERRORs the pyOpenMS readthedocs/Sphinx build emits from nanobind binding docstrings. The build still succeeded (these are non-fatal), but the errors pollute the log and break cross-references in the rendered API docs.Root cause
Two distinct RST-parsing issues:
data_,fit_data_,transformations_,lambda_) appears verbatim in docstrings, where RST reads a word ending in_at a word boundary as a hyperlink reference →ERROR: Unknown target name: "...". Affected:KDTreeFeatureNode.getIndex,MapAlignmentAlgorithmKD.addRTFitData,MapAlignmentAlgorithmKD.fitLOWESS,Pi0Result.FeatureFinderMetaboIdentCompound— theConstructor:/Arguments:blocks parse as block quotes, so the deeper-indented continuation line tripsERROR: Unexpected indentation.Fix
``data_``), so RST treats them as code and renders them monospace.Constructor:/Arguments:blocks to literal blocks (::) so the indented text is taken verbatim.No behavioral change — docstrings only.
Verification
Clean Sphinx rebuild against the freshly-built bindings:
Remaining warnings are unrelated (missing
intersphinx_mapping, hoverxref glossary noise) and out of scope here.Part of #9460 (pyOpenMS readthedocs build task).
🤖 Generated with Claude Code
Summary by CodeRabbit