Repository navigation
Name the eliminate parameter in the recipes docstrings - #624
Open
VenishPaneliya wants to merge 1 commit into
Open
VenishPaneliya wants to merge 1 commit into
VenishPaneliya wants to merge 1 commit into
Conversation
Both functions in funsor/recipes.py write the eliminate entry as ``:param frozenset:`` with no parameter name. Sphinx reads the single token as the name, so docs/source/recipes.rst renders a parameter called "frozenset" and eliminate is missing from the rendered signature entirely. Also give plates its frozenset type, matching the other entries in the same two blocks.
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.
forward_filter_backward_rsampleandforward_filter_backward_preconditionboth write theeliminateentry as:param frozenset:, with the type where the name should be. Sphinx readsthat single token as the parameter name, so
docs/source/recipes.rst(.. automodule:: funsor.recipes) renders a parameter called frozenset andeliminatedoes not appear at all.Rendering the docstring with
sphinx.ext.autodocbefore the change:and after:
I also gave
platesitsfrozensettype, since every other entry in these two blocks carriesone. Docstrings only;
ruff checkandruff format --checkboth pass.