numpy / numpydoc

Numpy's Sphinx extensions

Home Page:https://numpydoc.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WARNING: undefined label: 'python:bltin-boolean-values'

pllim opened this issue · comments

Intersphinx like this now points to Python 3.12 doc:

intersphinx_mapping = {
    'python': ('https://docs.python.org/3/', None),

Unfortunately, the bltin-boolean-values ref tag was completely removed in python/cpython#103487 . As a result, this xref now fails:

"bool": ":ref:`bool <python:bltin-boolean-values>`",
"boolean": ":ref:`bool <python:bltin-boolean-values>`",

WARNING: undefined label: 'python:bltin-boolean-values'

As I am unfamiliar with the internals here, it is unclear to me how one can make such xref be flexible enough for different Python versions. Would be nice if they add back the old tag but I am not sure if they will.

Update: Maybe they will after all, see python/cpython#110371 🤞

xref astropy/astropy#15428

This should go away soon, hopefully...