Title: Implement tracking variable values by location · Issue #682 · microsoft/python-language-server · GitHub
Open Graph Title: Implement tracking variable values by location · Issue #682 · microsoft/python-language-server
X Title: Implement tracking variable values by location · Issue #682 · microsoft/python-language-server
Description: For better intellisense we need to track variable assignment locations so in x = 1 x. # yields completions for int x = 's' x. # yields completions for str see also #668 for isinstance so from typing import Union, List class Foo: pass cla...
Open Graph Description: For better intellisense we need to track variable assignment locations so in x = 1 x. # yields completions for int x = 's' x. # yields completions for str see also #668 for isinstance so from typin...
X Description: For better intellisense we need to track variable assignment locations so in x = 1 x. # yields completions for int x = 's' x. # yields completions for str see also #668 for isinstance so fr...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/682
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Implement tracking variable values by location","articleBody":"For better intellisense we need to track variable assignment locations so in\r\n\r\n```python\r\nx = 1\r\nx. # yields completions for int\r\nx = 's'\r\nx. # yields completions for str\r\n```\r\nsee also #668 for `isinstance` so\r\n\r\n```python\r\nfrom typing import Union, List\r\n\r\nclass Foo: pass\r\nclass Bar: pass\r\n\r\nFB = Union[Foo, List[Bar]]\r\n\r\ndef do(fb: FB):\r\n if isinstance(fb, list):\r\n fb. # completions for list\r\n return fb[0]\r\n else:\r\n fb. # completions for Foo\r\n```","author":{"url":"https://github.com/MikhailArkhipov","@type":"Person","name":"MikhailArkhipov"},"datePublished":"2019-03-01T17:55:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/682/python-language-server/issues/682"}
| 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:068482e5-0257-e382-163a-c4e3f5c20720 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 87BA:32A102:3F1D35:54D673:6A529230 |
| html-safe-nonce | 7a1d74c80fed964431da5d3eb358a4a24f022b01212f96fe0feb39413484c833 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0JBOjMyQTEwMjozRjFEMzU6NTRENjczOjZBNTI5MjMwIiwidmlzaXRvcl9pZCI6IjIxNDc5OTcxMzAzMDM5MDIyNTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fe5c4866778af51a870b613f01fd2fce9a55356b35457c95ea45fbca2d6e7449 |
| hovercard-subject-tag | issue:416214200 |
| 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/682/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c69be5728db82364ecf67ffe76859e5598095ff31eda7f96b29c95324e5d64b2/microsoft/python-language-server/issues/682 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c69be5728db82364ecf67ffe76859e5598095ff31eda7f96b29c95324e5d64b2/microsoft/python-language-server/issues/682 |
| og:image:alt | For better intellisense we need to track variable assignment locations so in x = 1 x. # yields completions for int x = 's' x. # yields completions for str see also #668 for isinstance so from typin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MikhailArkhipov |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width