You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
? If so: I see that you're usign the protected function typing._eval_type. Is there a specific reason why you're not using a documented, public function here?
Ah, good to know, then I'll keep off :) Thanks for letting me know!
Still wondering about _eval_type in test official, but that's a different track, then :)
Steps to Reproduce
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 whytyping.get_origin
is used insteadtyping.get_args
. Moreover, we can let python resolve forward refs, as we've done recently intest_official
, which should reduce complexity.Actual behaviour
Nothing shown.
Operating System
Agnostic
Version of Python, python-telegram-bot & dependencies
Relevant log output
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: