Title: Iteration over tuples does not show type · Issue #416 · microsoft/python-language-server · GitHub
Open Graph Title: Iteration over tuples does not show type · Issue #416 · microsoft/python-language-server
X Title: Iteration over tuples does not show type · Issue #416 · microsoft/python-language-server
Description: t = ((1,), (2,), (3,)) for x in t: x t is shown as tuple[tuple[int], tuple[int], tuple[int]] which is correct, but x has no type. You can switch it to a list and it will work, like: l = [(1,), (2,), (3,)] for x in l: x And now x is of ty...
Open Graph Description: t = ((1,), (2,), (3,)) for x in t: x t is shown as tuple[tuple[int], tuple[int], tuple[int]] which is correct, but x has no type. You can switch it to a list and it will work, like: l = [(1,), (2,)...
X Description: t = ((1,), (2,), (3,)) for x in t: x t is shown as tuple[tuple[int], tuple[int], tuple[int]] which is correct, but x has no type. You can switch it to a list and it will work, like: l = [(1,), (2,)...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/416
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Iteration over tuples does not show type","articleBody":"```python\r\nt = ((1,), (2,), (3,))\r\nfor x in t:\r\n x\r\n```\r\n\r\n`t` is shown as `tuple[tuple[int], tuple[int], tuple[int]]` which is correct, but `x` has no type. You can switch it to a list and it will work, like:\r\n\r\n```python\r\nl = [(1,), (2,), (3,)]\r\nfor x in l:\r\n x\r\n```\r\n\r\nAnd now `x` is of type `tuple[int]`.\r\n\r\nFound in #334.","author":{"url":"https://github.com/jakebailey","@type":"Person","name":"jakebailey"},"datePublished":"2018-11-19T21:03:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/416/python-language-server/issues/416"}
| 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:5ec3d697-8afc-2e51-519b-2c5b822bae17 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E872:1EBB85:B52A53:F56515:6A5062E7 |
| html-safe-nonce | bd8d9f6037d92439351ed74df6cdb04949d8249c9c453b06b6b2b22a29caa0ba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODcyOjFFQkI4NTpCNTJBNTM6RjU2NTE1OjZBNTA2MkU3IiwidmlzaXRvcl9pZCI6IjM2NDcxMDQwMTAxMzczNjE2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2dde69e2eb1c2d2902343188cceef23be324f77b88fd0cf59eb29d08e8b67638 |
| hovercard-subject-tag | issue:382391997 |
| 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/416/issue_layout |
| twitter:image | https://opengraph.githubassets.com/90481362f4e9d52a780d288a50df4cc98a73c856caef8f311290fb7aa3d3de83/microsoft/python-language-server/issues/416 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/90481362f4e9d52a780d288a50df4cc98a73c856caef8f311290fb7aa3d3de83/microsoft/python-language-server/issues/416 |
| og:image:alt | t = ((1,), (2,), (3,)) for x in t: x t is shown as tuple[tuple[int], tuple[int], tuple[int]] which is correct, but x has no type. You can switch it to a list and it will work, like: l = [(1,), (2,)... |
| 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 | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width