Skip to content

Conversation

@Bibo-Joshi
Copy link
Member

Closes #2242

I made Handler be a generic class, this allows us to use the "update type" consistently in the annotation of the callback and the methods. Also updated the docs a bit.

@revolter maybe you can install this branch via pip install git+https://github.com/python-telegram-bot/python-telegram-bot.git@fix-2242 and check if it acutally works for you?

@Bibo-Joshi Bibo-Joshi added ⚙️ documentation affected functionality: documentation ⚙️ type-hinting affected functionality: type-hinting labels Dec 13, 2020
@Bibo-Joshi Bibo-Joshi requested a review from Poolitzer December 13, 2020 14:59
Copy link
Contributor

@revolter revolter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Copy link
Member

@Poolitzer Poolitzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left a comment here and there

Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com>
Copy link
Member

@Poolitzer Poolitzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Bibo-Joshi Bibo-Joshi merged commit 77a8c64 into master Dec 16, 2020
@Bibo-Joshi Bibo-Joshi deleted the fix-2242 branch December 16, 2020 16:35
@github-actions github-actions bot locked and limited conversation to collaborators Dec 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

⚙️ documentation affected functionality: documentation ⚙️ type-hinting affected functionality: type-hinting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Incorrect type hinting for Handlers

4 participants