diff --git a/changes/unreleased/5124.ZMLaT6JfSLD4orqRAqrZXj.toml b/changes/unreleased/5124.ZMLaT6JfSLD4orqRAqrZXj.toml new file mode 100644 index 00000000000..399927a4119 --- /dev/null +++ b/changes/unreleased/5124.ZMLaT6JfSLD4orqRAqrZXj.toml @@ -0,0 +1,5 @@ +other = "Fixing failing sphinx builds" +[[pull_requests]] +uid = "5124" +author_uids = ["Poolitzer"] +closes_threads = [] diff --git a/docs/auxil/sphinx_hooks.py b/docs/auxil/sphinx_hooks.py index a404fbf95f6..7183a0dbaf7 100644 --- a/docs/auxil/sphinx_hooks.py +++ b/docs/auxil/sphinx_hooks.py @@ -101,7 +101,7 @@ def autodoc_process_docstring( """ # 1) Insert the Keyword Args and "Shortcuts" admonitions for the Bot methods - method_name = name.rsplit(".", maxsplit=1) + method_name = name.rsplit(".", maxsplit=1)[0] if ( name.startswith("telegram.Bot.") and what == "method"