Skip to content
This repository was archived by the owner on Aug 27, 2024. It is now read-only.
This repository was archived by the owner on Aug 27, 2024. It is now read-only.

VSCode Extension: Python import parsing ignores requirements.txt / import tooling #10

@evankanderson

Description

@evankanderson

Python library import foo statements don't always line up with the package name on pypi. This is probably partially historical accident (libraries existed before PyPI, and PyPI didn't enforce a mapping between package names and how they are imported). This shows up with a number of modules, for example, the elasticsearch7 package, which installs as import elasticsearch. (This example is benign, but was easy to find.)

I think the proper fix requires understanding requirements.txt and the python library imports -- maybe from the PyLance python language server?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions