- Notifications
You must be signed in to change notification settings - Fork5.7k
Closed
Description
Steps to Reproduce
- Сreate an instance of the CallbackQueryHandler class
- Create an instance of the ConversationHandler class with entry_points that contains the instance from the first step
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
python-telegram-bot 20.2Bot API 6.6Python 3.11.2 (main, Apr 15 2023, 18:09:35) [Clang 14.0.0 (clang-1400.0.29.202)]
Relevant log output
No response
Additional Context
ConversationHandler entry_points should beSequence[BaseHandler[Update, CCT]]
instead ofList[BaseHandler[Update, CCT]]
?