-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Sub-Optiomal type hints in ConversationHandler
#3665
Labels
type hinting
Not bug. Not Docs. But both.
Comments
Hi. To clarify: This is not about runtime behavior but about sub-optimal type hints, right? |
yes, that's right. |
Bibo-Joshi
changed the title
Type checking error
Sub-Optiomal type hints in Apr 16, 2023
ConversationHandler
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Steps to Reproduce
Expected behaviour
Type checking should pass without errors
Actual behaviour
Type checking throws an error:
Argument of type "list[CallbackQueryHandler[DEFAULT_TYPE]]" cannot be assigned to parameter "entry_points" of type "List[BaseHandler[Update, CCT@ConversationHandler]]"
Operating System
MacOS 12.6.5
Version of Python, python-telegram-bot & dependencies
Relevant log output
No response
Additional Context
ConversationHandler entry_points should be
Sequence[BaseHandler[Update, CCT]]
instead ofList[BaseHandler[Update, CCT]]
?The text was updated successfully, but these errors were encountered: