Title: [BUG] Defaults not working with MessageQueue · Issue #2015 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: [BUG] Defaults not working with MessageQueue · Issue #2015 · python-telegram-bot/python-telegram-bot
X Title: [BUG] Defaults not working with MessageQueue · Issue #2015 · python-telegram-bot/python-telegram-bot
Description: Steps to reproduce Set up a bot with a MessageQueue as described in the wiki pass a Defaults object to the bot Expected behaviour Defaults should be used Actual behaviour They're not. Instead ValueError("Function has keyword-only paramet...
Open Graph Description: Steps to reproduce Set up a bot with a MessageQueue as described in the wiki pass a Defaults object to the bot Expected behaviour Defaults should be used Actual behaviour They're not. Instead Value...
X Description: Steps to reproduce Set up a bot with a MessageQueue as described in the wiki pass a Defaults object to the bot Expected behaviour Defaults should be used Actual behaviour They're not. Instead V...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/2015
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] Defaults not working with MessageQueue","articleBody":"### Steps to reproduce\r\n1. Set up a bot with a MessageQueue as described in the wiki\r\n\r\n2. pass a `Defaults` object to the bot\r\n\r\n### Expected behaviour\r\nDefaults should be used\r\n\r\n### Actual behaviour\r\nThey're not. Instead `ValueError(\"Function has keyword-only parameters or annotations\"` is raised\r\n\r\n### Why this happens & how to overcome\r\n1. `getargspec` is deprecated in favor of `getfullargspec`. This can easily be resolved\r\n2. This doesn't suffice yet, as the methods of `MQBot` override the bots methods and are decorated. `getfullargspec` can't see through the decorator. using `inspect.getfullargspec(inspect.unwrap(method))` can resolve that\r\n3. This still only works, if we explicitly list the methods args & kwargs while overriden in `MQBot`\r\n\r\nAfter #2012 this is one more reason to tackle MQ in v13.X/v14. Just adding `inspect.getfullargspec(inspect.unwrap(method))` as a more or less quick fix doesn't really seem right to me …","author":{"url":"https://github.com/Bibo-Joshi","@type":"Person","name":"Bibo-Joshi"},"datePublished":"2020-07-08T19:54:02Z","url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/2015"}
| 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:0ad9ee7f-2b38-db45-0108-dc7275ee1053 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE14:1773CF:92EDB7:C12718:6B025D22 |
| html-safe-nonce | 22c942a7ea13c3bd49d9ca85774d886776b0e42d28b0c2fcb8b0f3b497a742e0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTE0OjE3NzNDRjo5MkVEQjc6QzEyNzE4OjZCMDI1RDIyIiwidmlzaXRvcl9pZCI6IjQ3OTYzNjEyMTI5OTQ2NzM5NTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ed17154623d9f3c3fe3843a80855094702cb71ed531bd86814195ee629ca2dbc |
| hovercard-subject-tag | issue:653555236 |
| 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/2015/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7b41513f0a9f82a5c9d635ead3cf9b7187459c98137c548bd1dbbe37701f82fa/python-telegram-bot/python-telegram-bot/issues/2015 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7b41513f0a9f82a5c9d635ead3cf9b7187459c98137c548bd1dbbe37701f82fa/python-telegram-bot/python-telegram-bot/issues/2015 |
| og:image:alt | Steps to reproduce Set up a bot with a MessageQueue as described in the wiki pass a Defaults object to the bot Expected behaviour Defaults should be used Actual behaviour They're not. Instead Value... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Bibo-Joshi |
| 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