Skip to main content

import_bindings_from_imports

Function import_bindings_from_imports 

Source
pub fn import_bindings_from_imports(
    python: &dyn PythonSource,
    file: &ProjectFile,
    imports: &[ImportInfo],
) -> Vec<(String, ImportBinding)>
Expand description

Resolve each structured import without collapsing repeated local names.

Candidate discovery needs every lexical binding. The ordinary binder keeps one effective binding for simple lookups.