Title: @log obscured wrapped function's signature in VS Code · Issue #2677 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: @log obscured wrapped function's signature in VS Code · Issue #2677 · python-telegram-bot/python-telegram-bot
X Title: @log obscured wrapped function's signature in VS Code · Issue #2677 · python-telegram-bot/python-telegram-bot
Description: Steps to reproduce Expected behaviour Hover on referenced function, its actual signature pops up Actual behaviour Instead, decorator's signature was prompted, as in screenshot above Configuration Operating System: macOS 11.4 Version of P...
Open Graph Description: Steps to reproduce Expected behaviour Hover on referenced function, its actual signature pops up Actual behaviour Instead, decorator's signature was prompted, as in screenshot above Configuration O...
X Description: Steps to reproduce Expected behaviour Hover on referenced function, its actual signature pops up Actual behaviour Instead, decorator's signature was prompted, as in screenshot above Configurati...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/2677
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@log obscured wrapped function's signature in VS Code","articleBody":"### Steps to reproduce\r\n\u003cimg src=https://user-images.githubusercontent.com/1430856/122634030-b37b4380-d090-11eb-8f64-25b4c666a844.png height=400>\r\n\r\n### Expected behaviour\r\nHover on referenced function, its actual signature pops up\r\n\r\n### Actual behaviour\r\nInstead, decorator's signature was prompted, as in screenshot above\r\n\r\n### Configuration\r\n**Operating System:** macOS 11.4\r\n**Version of Python, python-telegram-bot & dependencies:** Python 3.6.9 (pyenv), PTB 13.6\r\n\r\n---\r\n\r\nI first reported this to pylance (https://github.com/microsoft/pylance-release/issues/1470), and was pointed out that `@log()`'s annotation is to blame (https://github.com/microsoft/pylance-release/issues/1470#issuecomment-865288128):\r\n\r\n`...` in `func: Callable[..., RT]` throws away parameter definition, and should use `ParamSpec` instead.\r\n\r\nhttps://github.com/python-telegram-bot/python-telegram-bot/blob/105f1ccdb5283f19c97c76a8234f8e61df88ce60/telegram/bot.py#L121-L123\r\n\r\nHowever, `ParamSpec` is pretty new (landed in Python 3.10) thus requires `typing_extension` package with older Python.","author":{"url":"https://github.com/ushuz","@type":"Person","name":"ushuz"},"datePublished":"2021-09-24T21:00:43Z","url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/2677"}
| 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:56c24107-c65e-273e-5395-c038d12aa3df |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 80E6:16E4ED:1C211E3:2323976:6B0279BB |
| html-safe-nonce | 5b4f5f5808fa0b081ddcadb0deceeccb03f0dbe00aa53e99c57f7e362ed3d6d5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MEU2OjE2RTRFRDoxQzIxMUUzOjIzMjM5NzY6NkIwMjc5QkIiLCJ2aXNpdG9yX2lkIjoiMjg1Mjg0Mzk5NzQ5MTY3NTQ3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 89f95acc999e250614f176c0aa2ce585638eb146d8eac7d9708b6ad5a3beb086 |
| hovercard-subject-tag | issue:1006822529 |
| 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/2677/issue_layout |
| twitter:image | https://opengraph.githubassets.com/81d4e642c358890b0ffce0ee0c8f8335dfb01524ef3c23ca23d6ed85fe9c2088/python-telegram-bot/python-telegram-bot/issues/2677 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/81d4e642c358890b0ffce0ee0c8f8335dfb01524ef3c23ca23d6ed85fe9c2088/python-telegram-bot/python-telegram-bot/issues/2677 |
| og:image:alt | Steps to reproduce Expected behaviour Hover on referenced function, its actual signature pops up Actual behaviour Instead, decorator's signature was prompted, as in screenshot above Configuration O... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ushuz |
| 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