Title: Unbalanced tuple unpack gets incorrect type · Issue #403 · microsoft/python-language-server · GitHub
Open Graph Title: Unbalanced tuple unpack gets incorrect type · Issue #403 · microsoft/python-language-server
X Title: Unbalanced tuple unpack gets incorrect type · Issue #403 · microsoft/python-language-server
Description: Only x should be an int, but y is being shown as one too. This will technically raise a ValueError ("not enough values to unpack"), but we shouldn't show any completion on y (which would be misleading). Likely related is this: (x, *y) = ...
Open Graph Description: Only x should be an int, but y is being shown as one too. This will technically raise a ValueError ("not enough values to unpack"), but we shouldn't show any completion on y (which would be mislead...
X Description: Only x should be an int, but y is being shown as one too. This will technically raise a ValueError ("not enough values to unpack"), but we shouldn't show any completion on y (which wo...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/403
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unbalanced tuple unpack gets incorrect type","articleBody":"\r\n\r\nOnly `x` should be an `int`, but `y` is being shown as one too. This will technically raise a ValueError (\"not enough values to unpack\"), but we shouldn't show any completion on y (which would be misleading).\r\n\r\nLikely related is this:\r\n\r\n```python\r\n(x, *y) = (1,)\r\n```\r\n\r\nCompleting on `y` should tell you that it's a `list`, but we show nothing.\r\n\r\nFound in #334.","author":{"url":"https://github.com/jakebailey","@type":"Person","name":"jakebailey"},"datePublished":"2018-11-19T17:32:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/403/python-language-server/issues/403"}
| 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:fef5e811-6071-4d33-bb3f-4406a7c63215 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A64E:1EDC:3BE2826:5320C69:6A504E76 |
| html-safe-nonce | 767f18e87983d018d94973ada7df849d66195737e6aefa31276b9d0bc9ce3ccc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjRFOjFFREM6M0JFMjgyNjo1MzIwQzY5OjZBNTA0RTc2IiwidmlzaXRvcl9pZCI6IjkwNTcyNTY4NzcwMjEyMjA0NzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7f23e8b6b1804652c894f9a11c9f4af1d4540d8d088ca726c16a567a93eeeba1 |
| hovercard-subject-tag | issue:382320860 |
| 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/microsoft/python-language-server/403/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cf0fa8e9b64c3f419c79154f4242ddb8746619d2a35f11c1826b27300b70682a/microsoft/python-language-server/issues/403 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cf0fa8e9b64c3f419c79154f4242ddb8746619d2a35f11c1826b27300b70682a/microsoft/python-language-server/issues/403 |
| og:image:alt | Only x should be an int, but y is being shown as one too. This will technically raise a ValueError ("not enough values to unpack"), but we shouldn't show any completion on y (which would be mislead... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jakebailey |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/python-language-server git https://github.com/microsoft/python-language-server.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 145901977 |
| octolytics-dimension-repository_nwo | microsoft/python-language-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 145901977 |
| octolytics-dimension-repository_network_root_nwo | microsoft/python-language-server |
| 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 | 5741a45fe07e5f377d0d4c524a92e3056acc51bb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width