From 65524c4d45a92aa49da5c0fb22483163165c5b25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=B3pez=20Barr=C3=B3n?= Date: Tue, 20 Aug 2024 13:57:02 +1000 Subject: [PATCH] Starting sphinx-7.4.0, sphinx.ext.intersphinx is a package, so check for module names prefix rather than full names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian López Barrón --- hoverxref/extension.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hoverxref/extension.py b/hoverxref/extension.py index c227ecf0..b139b615 100644 --- a/hoverxref/extension.py +++ b/hoverxref/extension.py @@ -174,7 +174,7 @@ def setup_intersphinx(app, config): for listener in app.events.listeners.get('missing-reference'): module_name = inspect.getmodule(listener.handler).__name__ - if module_name == 'sphinx.ext.intersphinx': + if module_name.startswith('sphinx.ext.intersphinx'): app.disconnect(listener.id)