Closed
Description
Describe the bug
It appears to me that intersphinx is unable to create a link to BytesIO
when a class inherits from it.
from io import BytesIO
class AppendingTiffWriter(BytesIO):
pass
.. autoclass:: PIL.AppendingTiffWriter
:show-inheritance:
/opt/hostedtoolcache/Python/3.12.5/x64/lib/python3.12/site-packages/PIL/init.py:docstring of PIL.AppendingTiffWriter:1: WARNING: py:class reference target not found: _io.BytesIO [ref.class]
How to Reproduce
I've created a minimal reproduction at https://github.com/radarhere/sphinx_demo. The build can be triggered using GitHub Actions. See https://github.com/radarhere/sphinx_demo/actions/runs/10748344237 for full output.
Environment Information
Platform: linux; (Linux-6.5.0-1025-azure-x86_64-with-glibc2.35)
Python version: 3.12.5 (main, Aug 13 2024, 19:25:41) [GCC 11.4.0])
Python implementation: CPython
Sphinx version: 8.0.2
Docutils version: 0.21.2
Jinja2 version: 3.1.4
Pygments version: 2.18.0
Sphinx extensions
["sphinx.ext.autodoc", "sphinx.ext.intersphinx"]
Additional context
No response