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:236
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 โ Requesting module key.; Type: ModuleKey
-
import_node โ Import node.; Type: astx.ImportStmt | astx.ImportFromStmt
-
requested_specifier โ Import specifier requested by the source module.; Type: str
Returns
Resolved one import request.; Type: ParsedModule