Skip to content

Specific stdlib modules cannot be imported #58

@dimtsi

Description

@dimtsi

I have identified a problem where some stdlib modules cannot be imported from the resolve-import-under-cursor functionality.

Some examples are defaultdict from collections and chain from itertools. The containing modules themselves collections and itertools can be imported as usual.

Something that might help is the fact that has to do with the fact that both objects live in .pyi stub modules (itertools.pyi, collections.pyi) whereas from other similar stdlib modules such as functools.py the issue does not exist. Could your parser exclude pyi modules maybe?

Thanks for all the help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions