Skip to content

Fix: Type hinting on Application.add_handlers #4531

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Oct 23, 2024

Conversation

roast-lord
Copy link
Contributor

@roast-lord roast-lord commented Oct 21, 2024

Possible fix #4530

Copy link
Member

@Bibo-Joshi Bibo-Joshi left a comment

Choose a reason for hiding this comment

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

Hi. Thanks for the catch and also for already providing a PR!
The annotation change itself looks ok for me. However, both the docstring and method implementation will need adaption as well. See lines 1435, 1463 and 1467 (1467 doesn't need adaption, but explains why adaption of 1463 is needed). Please be sure to adapt/extend unit tests if required. I'd say this change also warrants a "versionchanged" directive. Please have a look at the PR-checklist that we link in our PR-Template :)

@harshil21 harshil21 added the ⚙️ type-hinting affected functionality: type-hinting label Oct 22, 2024
@roast-lord
Copy link
Contributor Author

Hi! Thanks for the feedback!

I've made the changes you asked, let me know if there's something wrong!

Copy link
Member

@Bibo-Joshi Bibo-Joshi left a comment

Choose a reason for hiding this comment

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

LGTM, then. thanks very much for the contribution and the fast responses!

@Bibo-Joshi Bibo-Joshi merged commit efacc3d into python-telegram-bot:master Oct 23, 2024
25 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
⚙️ type-hinting affected functionality: type-hinting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Type Hinting] Application.add_handlers is not properly annotated.
3 participants