Skip to content

[Bug] Sandbox importer not respecting relative levels for pass through #208

@cretz

Description

@cretz

Describe the bug

Some relative imports are respected, but ones that call __import__ with a level > 0 are not properly. This surfaced during a non-binary install of Pydantic for #207. We need to mimic https://github.com/python/cpython/blob/c8c6113398ee9a7867fe9b08bc539cceb61e2aaa/Lib/importlib/_bootstrap.py#L1255-L1258.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions