Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix GameHighScore return in admonition #4414

@harshil21

Description

@harshil21

Steps to Reproduce

  1. Check the docs for gamehighscore
  2. 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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions