Description
Steps to Reproduce
- Check the docs for gamehighscore
- No returned in admonition present
Expected behaviour
It should show Returned in Bot.get_game_high_scores
.
I propose refactoring the code of AdmonitionInserter._resolve_arg
, since that is why this fails. I am unsure why typing.get_origin
is used instead typing.get_args
. Moreover, we can let python resolve forward refs, as we've done recently in test_official
, which should reduce complexity.
Actual behaviour
Nothing shown.
Operating System
Agnostic
Version of Python, python-telegram-bot & dependencies
python-telegram-bot 21.4 (v21.4-13-g356a58ffd)
Bot API 7.8
Python 3.13.0b1 (main, May 10 2024, 23:59:20) [GCC 13.2.0]
Relevant log output
No response
Additional Context
No response