Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reportMissingModuleSource: requests.packages.urllib3.util.retry #1323

Closed
andreighinea1 opened this issue May 20, 2021 · 1 comment
Closed
Labels
duplicate This issue or pull request already exists

Comments

@andreighinea1
Copy link

Environment data

  • Language Server version: 2021.5.3
  • OS and version: Windows 10 Pro, 20H2, 19042.985
  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.4

Expected behaviour

It should find "requests.packages.urllib3.util.retry"

Actual behaviour

Import "requests.packages.urllib3.util.retry" could not be resolved from source Pylance(reportMissingModuleSource)

Logs

Nothing is printed just for importing

Code Snippet / Additional information

import requests
from requests.adapters import HTTPAdapter
from requests.packages.urllib3.util.retry import Retry
@jakebailey
Copy link
Member

Duplicate of #597.

requests does some shady at-runtime things to reexport these modules.

@jakebailey jakebailey added the duplicate This issue or pull request already exists label May 20, 2021
@github-actions github-actions bot removed the triage label May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants