-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
Describe the bug
Since Sphinx 4.4.0, None is no longer hyperlinked.
I think this might be in all cases, but I've noticed it in the case where it's used as one of the types for a parameter through a docstring, using autodoc and napoleon (and intersphinx).
Sphinx 4.4.0 is the first version this started happening in, and it's persisted in every version since.
I think I've been able to narrow it down as due to 5da68c3 (#10021).
How to Reproduce
With Sphinx 4.3.2:
$ git clone https://github.com/tweepy/tweepy
$ cd tweepy
$ pip install -r requirements.txt
$ cd docs
$ make html
$ # open _build/html/client.html and see None properly hyperlinked
With Sphinx 4.4.0:
$ git clone https://github.com/tweepy/tweepy
$ cd tweepy
$ pip install -r requirements.txt
$ cd docs
$ make html
$ # open _build/html/client.html and see None not hyperlinked
Your project
https://github.com/tweepy/tweepy
OS
Microsoft Windows [Version 10.0.19043.1889]
Python version
Python 3.10.0 (tags/v3.10.0:b494f59, Oct 4 2021, 19:00:18) [MSC v.1929 64 bit (AMD64)] on win32
Sphinx version
4.4.0 and newer
Sphinx extensions
hoverxref.extension
myst_parser
sphinx.ext.autodoc
sphinx.ext.autosectionlabel
sphinx.ext.intersphinx
sphinx.ext.napoleon
sphinx_search.extension
sphinx_tabs.tabs