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.
Feature or 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. Thewhat
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