René's URL Explorer Experiment


Title: torch.nn missing from torch module and `from torch import` completions · Issue #1301 · microsoft/python-language-server · GitHub

Open Graph Title: torch.nn missing from torch module and `from torch import` completions · Issue #1301 · microsoft/python-language-server

X Title: torch.nn missing from torch module and `from torch import` completions · Issue #1301 · microsoft/python-language-server

Description: Hi, I'm the author of type stubs for PyTorch, and it seems VSCode is not suggesting some autocompletes of methods and modules that the stubs clearly state exist and that mypy and PyCharm make use of (using the 'daily' download channel). ...

Open Graph Description: Hi, I'm the author of type stubs for PyTorch, and it seems VSCode is not suggesting some autocompletes of methods and modules that the stubs clearly state exist and that mypy and PyCharm make use o...

X Description: Hi, I'm the author of type stubs for PyTorch, and it seems VSCode is not suggesting some autocompletes of methods and modules that the stubs clearly state exist and that mypy and PyCharm make u...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"torch.nn missing from torch module and `from torch import` completions","articleBody":"Hi,\r\nI'm the author of type stubs for PyTorch, and it seems VSCode is not suggesting some autocompletes of methods and modules that the stubs clearly state exist and that mypy and PyCharm make use of (using the 'daily' download channel). I haven't been able to construct a MWE yet.\r\n\r\nTo reproduce, install PyTorch master (as of 046c4589df15fc4e7b832d594d3d8e3a54cd47c9) following the instructions at https://github.com/pytorch/pytorch#get-the-pytorch-source. *NOT* the release version, which doesn't yet ship with the type stubs the language server seems to be having trouble using.\r\n\r\nIn a buffer, after waiting for the analysis to complete, try\r\n\r\n```python\r\nimport torch\r\ntorch.\r\n```\r\n\r\nthe list of autocompletes does not include the `nn` module, even though `from . import nn as nn` appears in `torch/__init__.pyi`.\r\n\r\nFurther,\r\n\r\n```python\r\nfrom torch import nn\r\nnn.\r\n```\r\n\r\ndoesn't provide any suggestions from the language server, even though `torch/nn/__init__.pyi` contains\r\n\r\n```python\r\nfrom .modules import * \r\nfrom .parameter import Parameter as Parameter\r\nfrom .parallel import DataParallel as DataParallel\r\nfrom . import init as init\r\nfrom . import utils as utils\r\n```\r\n\r\n\r\n\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/malmaud","@type":"Person","name":"malmaud"},"datePublished":"2019-07-09T21:04:32Z","url":"https://github.com/microsoft/python-language-server/issues/1301"}

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:9b64f4a3-b266-6374-a879-dc60ab87d74d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDABA:2AB414:4A072A:62158A:6AFE6685
html-safe-nonce27489927dd185dcc37f73d63ddcd389837f177fc7fc3a214f977492fb89e5ab0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUJBOjJBQjQxNDo0QTA3MkE6NjIxNThBOjZBRkU2Njg1IiwidmlzaXRvcl9pZCI6IjgwNDg2MTUwMTA1MDQ0MzUzMzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac220e24fd4a0f1c57ee85d35f3a9a3eb178e3a0c4df8fb33db0a97cc8fa4a0a89
hovercard-subject-tagissue:465984189
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/1301/issue_layout
twitter:imagehttps://opengraph.githubassets.com/923ca6224b46cbfe80acf03702fcfc9d40e6e59e5dda04e2af7ee20f59972587/microsoft/python-language-server/issues/1301
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/923ca6224b46cbfe80acf03702fcfc9d40e6e59e5dda04e2af7ee20f59972587/microsoft/python-language-server/issues/1301
og:image:altHi, I'm the author of type stubs for PyTorch, and it seems VSCode is not suggesting some autocompletes of methods and modules that the stubs clearly state exist and that mypy and PyCharm make use o...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemalmaud
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/1301#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F1301
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%2F1301
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/1301
Reloadhttps://github.com/microsoft/python-language-server/issues/1301
Reloadhttps://github.com/microsoft/python-language-server/issues/1301
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
#1565https://github.com/microsoft/python-language-server/pull/1565
torch.nn missing from torch module and from torch import completionshttps://github.com/microsoft/python-language-server/issues/1301#top
#1565https://github.com/microsoft/python-language-server/pull/1565
https://github.com/MikhailArkhipov
bugSomething isn't workinghttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22bug%22
feature: analysishttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22feature%3A%20analysis%22
feature: intellisensehttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22feature%3A%20intellisense%22
package: pytorchIssues specific to PyTorchhttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22package%3A%20pytorch%22
September 2019.2https://github.com/microsoft/python-language-server/milestone/26
https://github.com/malmaud
Jonathan Malmaud (malmaud)https://github.com/malmaud
on Jul 9, 2019https://github.com/microsoft/python-language-server/issues/1301#issue-465984189
https://github.com/pytorch/pytorch#get-the-pytorch-sourcehttps://github.com/pytorch/pytorch#get-the-pytorch-source
Nexthttps://github.com/microsoft/python-language-server/issues/1301?timeline_page=1
Jonathan Malmaud (malmaud)https://github.com/malmaud
on Jul 9, 2019https://github.com/microsoft/python-language-server/issues/1301#event-2470668229
https://github.com/caidwang
Sunchao Wang (caidwang)https://github.com/caidwang
on Aug 13, 2019https://github.com/microsoft/python-language-server/issues/1301#issuecomment-520663965
https://github.com/malmaud
Jonathan Malmaud (malmaud)https://github.com/malmaud
on Aug 13, 2019https://github.com/microsoft/python-language-server/issues/1301#issuecomment-520896390
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Aug 13, 2019https://github.com/microsoft/python-language-server/issues/1301#issuecomment-520938603
Jonathan Malmaud (@malmaud)https://github.com/malmaud
https://github.com/malmaud
Jonathan Malmaud (malmaud)https://github.com/malmaud
on Aug 13, 2019https://github.com/microsoft/python-language-server/issues/1301#issuecomment-520945184
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Aug 13, 2019https://github.com/microsoft/python-language-server/issues/1301#issuecomment-520948836
https://github.com/malmaud
Jonathan Malmaud (malmaud)https://github.com/malmaud
on Aug 13, 2019https://github.com/microsoft/python-language-server/issues/1301#issuecomment-520950741
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Sep 18, 2019https://github.com/microsoft/python-language-server/issues/1301#issuecomment-532511496
https://user-images.githubusercontent.com/12820357/65111313-67b5da80-d990-11e9-8a9f-605c30c3089a.png
https://user-images.githubusercontent.com/12820357/65111385-ae0b3980-d990-11e9-8684-81a3a86660e6.png
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Sep 18, 2019https://github.com/microsoft/python-language-server/issues/1301#event-2642091705
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
bugSomething isn't workinghttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22bug%22
feature: analysishttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22feature%3A%20analysis%22
feature: intellisensehttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22feature%3A%20intellisense%22
on Sep 18, 2019https://github.com/microsoft/python-language-server/issues/1301#event-2642091976
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
September 2019.2https://github.com/microsoft/python-language-server/milestone/26
September 2019.1https://github.com/microsoft/python-language-server/milestone/25
on Sep 18, 2019https://github.com/microsoft/python-language-server/issues/1301#event-2643892237
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Sep 19, 2019https://github.com/microsoft/python-language-server/issues/1301#issuecomment-533287743
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Sep 19, 2019https://github.com/microsoft/python-language-server/issues/1301#issuecomment-533314161
#1098https://github.com/microsoft/python-language-server/issues/1098
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
September 2019.1https://github.com/microsoft/python-language-server/milestone/25
September 2019.2https://github.com/microsoft/python-language-server/milestone/26
on Sep 19, 2019https://github.com/microsoft/python-language-server/issues/1301#event-2648630544
Graham Wheeler (gramster)https://github.com/gramster
package: pytorchIssues specific to PyTorchhttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22package%3A%20pytorch%22
on Sep 21, 2019https://github.com/microsoft/python-language-server/issues/1301#event-2651810583
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
completedhttps://github.com/microsoft/python-language-server/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1565https://github.com/microsoft/python-language-server/pull/1565
on Sep 26, 2019https://github.com/microsoft/python-language-server/issues/1301#event-2663499968
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Sep 26, 2019https://github.com/microsoft/python-language-server/issues/1301#issuecomment-535276115
https://github.com/malmaud
Jonathan Malmaud (malmaud)https://github.com/malmaud
on Sep 29, 2019https://github.com/microsoft/python-language-server/issues/1301#issuecomment-536348303
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Sep 29, 2019https://github.com/microsoft/python-language-server/issues/1301#issuecomment-536353306
https://user-images.githubusercontent.com/12820357/65841612-1800d880-e2d9-11e9-9ae5-5dbbfd41481d.png
https://user-images.githubusercontent.com/12820357/65841628-38309780-e2d9-11e9-9aa3-86d9642c27e1.png
https://github.com/malmaud
Jonathan Malmaud (malmaud)https://github.com/malmaud
on Sep 30, 2019https://github.com/microsoft/python-language-server/issues/1301#issuecomment-536357918
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Sep 30, 2019https://github.com/microsoft/python-language-server/issues/1301#issuecomment-536359865
https://user-images.githubusercontent.com/12820357/65842599-8ba6e380-e2e1-11e9-82bd-1e29474caa4d.png
https://github.com/malmaud
Jonathan Malmaud (malmaud)https://github.com/malmaud
on Oct 14, 2019https://github.com/microsoft/python-language-server/issues/1301#issuecomment-541944151
https://user-images.githubusercontent.com/987837/66785560-9baaef80-eeab-11e9-9fcd-325116bd803a.png
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Oct 14, 2019https://github.com/microsoft/python-language-server/issues/1301#issuecomment-541957312
#1414https://github.com/microsoft/python-language-server/issues/1414
https://github.com/vict0rsch
Victor Schmidt (vict0rsch)https://github.com/vict0rsch
on Feb 6, 2020https://github.com/microsoft/python-language-server/issues/1301#issuecomment-582979581
#1565https://github.com/microsoft/python-language-server/pull/1565
https://github.com/vict0rsch
Victor Schmidt (vict0rsch)https://github.com/vict0rsch
on Feb 22, 2020https://github.com/microsoft/python-language-server/issues/1301#issuecomment-589986603
Mikhail Arkhipov (@MikhailArkhipov)https://github.com/MikhailArkhipov
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/python-language-server/issues/1301
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/python-language-server/issues/1301
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
bugSomething isn't workinghttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22bug%22
feature: analysishttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22feature%3A%20analysis%22
feature: intellisensehttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22feature%3A%20intellisense%22
package: pytorchIssues specific to PyTorchhttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22package%3A%20pytorch%22
September 2019.2https://github.com/microsoft/python-language-server/milestone/26
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.