Title: Type-hinting for IDEs · Issue #1373 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: Type-hinting for IDEs · Issue #1373 · python-telegram-bot/python-telegram-bot
X Title: Type-hinting for IDEs · Issue #1373 · python-telegram-bot/python-telegram-bot
Description: Hi there, I like to use the Message.reply_* functions but it's kind of annoying to always look up the parameters manually. There is a lack of type-hinting here. And with python stub files (or type hinting in the python files directly thi...
Open Graph Description: Hi there, I like to use the Message.reply_* functions but it's kind of annoying to always look up the parameters manually. There is a lack of type-hinting here. And with python stub files (or type ...
X Description: Hi there, I like to use the Message.reply_* functions but it's kind of annoying to always look up the parameters manually. There is a lack of type-hinting here. And with python stub files (or t...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/1373
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Type-hinting for IDEs","articleBody":"Hi there,\r\n\r\nI like to use the Message.reply_* functions but it's kind of annoying to always look up the parameters manually. There is a lack of type-hinting here. And with python stub files (or type hinting in the python files directly this would not be a problem at all.\r\n\r\nThe Problem is, if I have a update instance and I call `update.message` it doesn't know that this is a Message instance. If I tell my IDE using `message = update.message # type: Message` it works so far. But when I then type `message.reply_text(` there is no type-hinting (or variable hinting for that matter) for the named parameters. This is annoying.\r\n\r\nI started to create python stub files like this:\r\n\r\n\r\nBut it would be awesome if type-hinting a la [PEP-484](https://www.python.org/dev/peps/pep-0484/) would be integrated in the project itself. \r\n\r\nI know that python 2 compatibility (at least until EOL) is still a thing, but type-hinting with comments like described above (and at some place in PEP-484) is always possible for both python versions.\r\n\r\n","author":{"url":"https://github.com/TiiFuchs","@type":"Person","name":"TiiFuchs"},"datePublished":"2019-03-26T08:41:13Z","url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/1373"}
| 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:99ea6173-3415-2fa3-231b-7f39023e4592 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3D2:9286A:1FF78C:29ADF7:6B025853 |
| html-safe-nonce | cfd61d9ced94acd19ae7d60644086d33835de2595e45126f76af5ad7c07746bb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0QyOjkyODZBOjFGRjc4QzoyOUFERjc6NkIwMjU4NTMiLCJ2aXNpdG9yX2lkIjoiNjI2Njk0MzkxOTA2MjQwNzI1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 513d1f2320bbcef933f3cdff1626a413e06cce3aa262fa785494ec54efa7d723 |
| hovercard-subject-tag | issue:425287947 |
| 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/1373/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4e8869393ebf0c45ade80e3576a49e26a12fdaf802a53b6f3c890fc08e7388fc/python-telegram-bot/python-telegram-bot/issues/1373 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4e8869393ebf0c45ade80e3576a49e26a12fdaf802a53b6f3c890fc08e7388fc/python-telegram-bot/python-telegram-bot/issues/1373 |
| og:image:alt | Hi there, I like to use the Message.reply_* functions but it's kind of annoying to always look up the parameters manually. There is a lack of type-hinting here. And with python stub files (or type ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TiiFuchs |
| 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