Skip to content

Commit

Permalink
Starting sphinx-7.4.0, sphinx.ext.intersphinx is a package, so check …
Browse files Browse the repository at this point in the history
…for module names prefix rather than full names

Signed-off-by: Christian López Barrón <[email protected]>
  • Loading branch information
chrizzFTD committed Aug 20, 2024
1 parent b7a9721 commit 65524c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hoverxref/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 65524c4

Please sign in to comment.