API reference
python:irx:irx.analysis.ImportResolver.__call__
method __call__
__call__(requesting_module_key: ModuleKey, import_node: astx.ImportStmt | astx.ImportFromStmt, requested_specifier: str) -> ParsedModule
Source: packages/irx/src/irx/analysis/module_interfaces.py:253
Declared as: python:irx:irx.analysis.module_interfaces.ImportResolver.__call__
Resolve one import request.
Return the parsed module selected by the host for one import edge. Raise ImportResolutionError for expected user-actionable failures; other exceptions are treated as internal resolver failures.
Parameters
-
requesting_module_key โ Type: ModuleKey
-
import_node โ Type: astx.ImportStmt | astx.ImportFromStmt
-
requested_specifier โ Type: str
Returns
Type: ParsedModule