Skip to content

Conversation

jdknight
Copy link
Contributor

Feature or Bugfix

  • Bugfix

Purpose

During typecheck improvements, a change accidentally removed the ability for autodoc's cut_lines call to run when no what-hints are provided. The what argument may be empty and an empty scenario should not stop the cut call from processing lines.

Example

An example documentation set configures cut_lines which has a rendering that excludes the leading line of the docstrings. However, a render (at the time of writing) using Sphinx 8.1.2 show docstrings not being cut.

Relates

During typecheck improvements [1], the change accidentally removed the
ability for autodoc's `cut_lines` call to run when no what-hints are
provided. The `what` argument may be empty and an empty scenario should
not stop the cut call from processing lines.

[1]: sphinx-doc#12933

Signed-off-by: James Knight <git@jdknight.me>
@AA-Turner
Copy link
Member

Sphinx 8.1.3 has been released.

A

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants