Title: Sub-Optiomal type hints in `ConversationHandler` · Issue #3665 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: Sub-Optiomal type hints in `ConversationHandler` · Issue #3665 · python-telegram-bot/python-telegram-bot
X Title: Sub-Optiomal type hints in `ConversationHandler` · Issue #3665 · python-telegram-bot/python-telegram-bot
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 wit...
Open Graph 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...
X 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...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/3665
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sub-Optiomal type hints in `ConversationHandler`","articleBody":"### Steps to Reproduce\n\n1. Сreate an instance of the CallbackQueryHandler class\r\n2. Create an instance of the ConversationHandler class with entry_points that contains the instance from the first step\r\n\n\n### Expected behaviour\n\nType checking should pass without errors\n\n### Actual behaviour\n\nType checking throws an error:\r\n\r\n`Argument of type \"list[CallbackQueryHandler[DEFAULT_TYPE]]\" cannot be assigned to parameter \"entry_points\" of type \"List[BaseHandler[Update, CCT@ConversationHandler]]\"`\n\n### Operating System\n\nMacOS 12.6.5\n\n### Version of Python, python-telegram-bot & dependencies\n\n```shell\npython-telegram-bot 20.2\r\nBot API 6.6\r\nPython 3.11.2 (main, Apr 15 2023, 18:09:35) [Clang 14.0.0 (clang-1400.0.29.202)]\n```\n\n\n### Relevant log output\n\n_No response_\n\n### Additional Context\n\nConversationHandler entry_points should be `Sequence[BaseHandler[Update, CCT]]` instead of `List[BaseHandler[Update, CCT]]`?","author":{"url":"https://github.com/klim-neumann","@type":"Person","name":"klim-neumann"},"datePublished":"2023-04-16T12:34:23Z","url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/3665"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:58b6e1bf-43c8-d0c2-383b-4c0d06ffebfe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9252:252FE9:6F96D:91BFC:6B027D96 |
| html-safe-nonce | cbdac5d5ecb9706b62ec33a5430db80b170eb22e7410a2e50b2eb52824cf1374 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjUyOjI1MkZFOTo2Rjk2RDo5MUJGQzo2QjAyN0Q5NiIsInZpc2l0b3JfaWQiOiIzODg4NTc3NTMwOTAyNTEwOTk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6a1e9a6c2257675eff4700477cb90df2afd937422760b2a2beadb529b7d1cecf |
| hovercard-subject-tag | issue:1669940207 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-telegram-bot/python-telegram-bot/3665/issue_layout |
| twitter:image | https://opengraph.githubassets.com/face60f486b27414e1b5dc18a21bc08d81859338bb602925b3953c21d9779517/python-telegram-bot/python-telegram-bot/issues/3665 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/face60f486b27414e1b5dc18a21bc08d81859338bb602925b3953c21d9779517/python-telegram-bot/python-telegram-bot/issues/3665 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | klim-neumann |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-telegram-bot/python-telegram-bot git https://github.com/python-telegram-bot/python-telegram-bot.git |
| octolytics-dimension-user_id | 16178365 |
| octolytics-dimension-user_login | python-telegram-bot |
| octolytics-dimension-repository_id | 38696925 |
| octolytics-dimension-repository_nwo | python-telegram-bot/python-telegram-bot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38696925 |
| octolytics-dimension-repository_network_root_nwo | python-telegram-bot/python-telegram-bot |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width