Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Restore autodocs cut-lines with empty what-hints #13013

Closed

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
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants