That is, it generates a clickable link to the None singleton from the Return type section. It seems inconsistent for autodoc_typehints='description' to generate a link to the None singleton's documentation but for autodoc_typehints='signature' to not generate a link.
Describe the bug
Given a Python file containing:
The latest Sphinx installed from PyPI generates:
And then winds up generating a warning, if
Which of course fails the build if
This works fine if the return type is
None- I'm guessing that the issue is the type is resolved using
py:class, but that
Noneis special, as per PEP-484:
Documentation generation completes without an error, and includes a link to https://docs.python.org/3/library/constants.html#None
Appears to have been introduced in 3.0.0; our CI had no issue with the latest version on PyPI as of Friday.
The text was updated successfully, but these errors were encountered: