René's URL Explorer Experiment


Title: Tuple[int, int] not unpacked correctly into lvar tuple · Issue #1457 · microsoft/python-language-server · GitHub

Open Graph Title: Tuple[int, int] not unpacked correctly into lvar tuple · Issue #1457 · microsoft/python-language-server

X Title: Tuple[int, int] not unpacked correctly into lvar tuple · Issue #1457 · microsoft/python-language-server

Description: Description In the following piece of code, the Microsoft Python Analysis Engine incorrectly infers the types of a and b when hovering over them. Minimal reproducible example from typing import Tuple, List def foo() -> List[Tuple[int, in...

Open Graph Description: Description In the following piece of code, the Microsoft Python Analysis Engine incorrectly infers the types of a and b when hovering over them. Minimal reproducible example from typing import Tup...

X Description: Description In the following piece of code, the Microsoft Python Analysis Engine incorrectly infers the types of a and b when hovering over them. Minimal reproducible example from typing import Tup...

Opengraph URL: https://github.com/microsoft/python-language-server/issues/1457

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Tuple[int, int] not unpacked correctly into lvar tuple","articleBody":"# Description\r\n\r\nIn the following piece of code, the Microsoft Python Analysis Engine incorrectly infers the types of `a` and `b` when hovering over them.\r\n\r\n# Minimal reproducible example\r\n\r\n```python\r\nfrom typing import Tuple, List\r\n\r\ndef foo() -> List[Tuple[int, int]]:\r\n    return [(1, -1)]\r\n\r\nresult = foo()\r\n(a, b) = result[0]\r\n```\r\n\r\n# Expected behavior\r\n\r\nWhen hovering over `a` or `b`, I expect to see `a: int` and `b: int`.\r\n\r\n# Actual behavior\r\n\r\nWhen hovering over `a` or `b`, it shows `a: Tuple[int, int]` and `b: Tuple[int, int]`. I also tested this using PyCharm CE and it correctly inferred the types (i.e. `a: int` and `b: int`).\r\n\r\n# System information\r\n\r\n**OS**: macOS \"Mojave\" 10.14.6 (18G87)\r\n\r\n## Visual Studio Code\r\n\r\n**Python extension version**: 2019.8.30787\r\n\r\n**Version**: 1.37.1\r\n**Commit**: f06011ac164ae4dc8e753a3fe7f9549844d15e35\r\n**Date**: 2019-08-15T16:16:34.800Z\r\n**Electron**: 4.2.7\r\n**Chrome**: 69.0.3497.128\r\n**Node.js**: 10.11.0\r\n**V8**: 6.9.427.31-electron.0\r\n**OS**: Darwin x64 18.7.0\r\n","author":{"url":"https://github.com/bvanrijn","@type":"Person","name":"bvanrijn"},"datePublished":"2019-08-19T18:29:22Z","url":"https://github.com/microsoft/python-language-server/issues/1457"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1381ed7e-e99c-f624-e0b0-2e769ceceb66
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCA4C:BAA88:476D0:6171E:6AFE83CD
html-safe-noncebd4e784ed40fd0fe88a8f2ecc0e8033c8b8892fbcf3d93148b67f5097f83266d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTRDOkJBQTg4OjQ3NkQwOjYxNzFFOjZBRkU4M0NEIiwidmlzaXRvcl9pZCI6Ijg2ODAxMTQ2OTA2NjkzMTUwMjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacbf60255c0eacdb6b0b24a2fc456d35e295e9242e267cf1b11002056a29aab7ad
hovercard-subject-tagissue:482461689
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/python-language-server/1457/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cd92ac5914f3b7528e764f981c3101dfaa05f6931c0a27f5a2c88a9558aa3ccf/microsoft/python-language-server/issues/1457
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cd92ac5914f3b7528e764f981c3101dfaa05f6931c0a27f5a2c88a9558aa3ccf/microsoft/python-language-server/issues/1457
og:image:altDescription In the following piece of code, the Microsoft Python Analysis Engine incorrectly infers the types of a and b when hovering over them. Minimal reproducible example from typing import Tup...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebvanrijn
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
go-importgithub.com/microsoft/python-language-server git https://github.com/microsoft/python-language-server.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id145901977
octolytics-dimension-repository_nwomicrosoft/python-language-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id145901977
octolytics-dimension-repository_network_root_nwomicrosoft/python-language-server
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/python-language-server/issues/1457#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F1457
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F1457
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2Fpython-language-server
Reloadhttps://github.com/microsoft/python-language-server/issues/1457
Reloadhttps://github.com/microsoft/python-language-server/issues/1457
Reloadhttps://github.com/microsoft/python-language-server/issues/1457
microsofthttps://github.com/microsoft
python-language-serverhttps://github.com/microsoft/python-language-server
Codehttps://github.com/microsoft/python-language-server
Issues309 (309)https://github.com/microsoft/python-language-server/issues
Pull requests6 (6)https://github.com/microsoft/python-language-server/pulls
Projectshttps://github.com/microsoft/python-language-server/projects
Wikihttps://github.com/microsoft/python-language-server/wiki
Security and qualityhttps://github.com/microsoft/python-language-server/security
Insightshttps://github.com/microsoft/python-language-server/insights
https://github.com/microsoft/python-language-server
#1553https://github.com/microsoft/python-language-server/pull/1553
Tuple[int, int] not unpacked correctly into lvar tuplehttps://github.com/microsoft/python-language-server/issues/1457#top
#1553https://github.com/microsoft/python-language-server/pull/1553
https://github.com/CTrando
https://github.com/bvanrijn
Barend (bvanrijn)https://github.com/bvanrijn
on Aug 19, 2019https://github.com/microsoft/python-language-server/issues/1457#issue-482461689
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Aug 19, 2019https://github.com/microsoft/python-language-server/issues/1457#issuecomment-522704585
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Aug 19, 2019https://github.com/microsoft/python-language-server/issues/1457#event-2567301501
https://github.com/bvanrijn
Barend (bvanrijn)https://github.com/bvanrijn
on Aug 19, 2019https://github.com/microsoft/python-language-server/issues/1457#issuecomment-522704920
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Aug 26, 2019https://github.com/microsoft/python-language-server/issues/1457#issuecomment-524933729
https://user-images.githubusercontent.com/5341706/63706976-9f908e80-c7e5-11e9-8c90-53bd6b715f24.png
Jake Bailey (jakebailey)https://github.com/jakebailey
on Aug 26, 2019https://github.com/microsoft/python-language-server/issues/1457#event-2584265385
Cameron Trando (CTrando)https://github.com/CTrando
on Aug 28, 2019https://github.com/microsoft/python-language-server/issues/1457#event-2592220764
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
completedhttps://github.com/microsoft/python-language-server/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1553https://github.com/microsoft/python-language-server/pull/1553
on Sep 16, 2019https://github.com/microsoft/python-language-server/issues/1457#event-2638005960
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Sep 16, 2019https://github.com/microsoft/python-language-server/issues/1457#event-2638006029
Unpacking typing Tuples and Lists correctly (#1553)https://github.com/microsoft/python-language-server/commit/57a9a43d1a88f7d364d5a530fc89878c46642da5
#1553https://github.com/microsoft/python-language-server/pull/1553
https://docs.github.com/articles/closing-issues-via-commit-messages
57a9a43https://github.com/microsoft/python-language-server/commit/57a9a43d1a88f7d364d5a530fc89878c46642da5
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Sep 16, 2019https://github.com/microsoft/python-language-server/issues/1457#issuecomment-531983756
Jake Bailey (jakebailey)https://github.com/jakebailey
on Nov 1, 2019https://github.com/microsoft/python-language-server/issues/1457#event-2764572848
Unpacking typing Tuples and Lists correctly (microsoft#1553)https://github.com/jakebailey/python-language-server/commit/fdb25620263a58b4f840147e321612f960178c7a
microsoft#1553https://github.com/microsoft/python-language-server/pull/1553
https://docs.github.com/articles/closing-issues-via-commit-messages
fdb2562https://github.com/jakebailey/python-language-server/commit/fdb25620263a58b4f840147e321612f960178c7a
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/python-language-server/issues/1457
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/python-language-server/issues/1457
Cameron Trando (CTrando)https://github.com/CTrando
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.