From 7ba3f118e4e297aabbf00bec5912a4a4180787ee Mon Sep 17 00:00:00 2001 From: Jerry James Date: Mon, 28 Jul 2025 13:40:12 -0600 Subject: [PATCH] Fix --help with python 3.14 and sphinx 8.2.3 The sphinx help strings assert the existence of translations, which are not provided by sphinx-autobuild. Convert the _TranslationProxy objects into English strings. --- sphinx_autobuild/__main__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sphinx_autobuild/__main__.py b/sphinx_autobuild/__main__.py index ed40ace..b1f058f 100644 --- a/sphinx_autobuild/__main__.py +++ b/sphinx_autobuild/__main__.py @@ -147,6 +147,10 @@ def _get_sphinx_build_parser(): sphinx_build_parser.description = None sphinx_build_parser.epilog = None sphinx_build_parser.prog = "sphinx-autobuild" + for action in sphinx_build_parser._actions: + if hasattr(action, "help"): + # Replace _TranslationProxy objects with strings + action.help = str(action.help) for action in sphinx_build_parser._actions: if hasattr(action, "version"): # Fix the version