API reference
python:irx:irx.analysis.call_arguments.collect_literal_context
function collect_literal_context
Variant 1
collect_literal_context(expected: astx.TemplateTypeVar, actual: astx.DataType | None, bindings: dict[str, astx.DataType]) -> None
Gather concrete sibling context for an unresolved variable.
Parameters
-
expected — Type: astx.TemplateTypeVar
-
actual — Type: astx.DataType | None
-
bindings — Type: dict[str, astx.DataType]
Variant 2
collect_literal_context(expected: astx.SequenceType, actual: astx.DataType | None, bindings: dict[str, astx.DataType]) -> None
Gather exact element context through a sequence adapter.
Parameters
-
expected — Type: astx.SequenceType
-
actual — Type: astx.DataType | None
-
bindings — Type: dict[str, astx.DataType]
Variant 3
collect_literal_context(expected: astx.ListType, actual: astx.ListType, bindings: dict[str, astx.DataType]) -> None
Gather matching list element contexts without element conversion.
Parameters
-
expected — Type: astx.ListType
-
actual — Type: astx.ListType
-
bindings — Type: dict[str, astx.DataType]
Variant 4
collect_literal_context(expected: astx.NullableType, actual: astx.NullableType, bindings: dict[str, astx.DataType]) -> None
Preserve nullability while gathering the inner element context.
Parameters
-
expected — Type: astx.NullableType
-
actual — Type: astx.NullableType
-
bindings — Type: dict[str, astx.DataType]
Variant 5
collect_literal_context(expected: astx.SeriesType | astx.TensorType | astx.BufferViewType, actual: astx.DataType | None, bindings: dict[str, astx.DataType]) -> None
Gather storage element contexts only for matching source kinds.
Parameters
-
expected — Type: astx.SeriesType | astx.TensorType | astx.BufferViewType
-
actual — Type: astx.DataType | None
-
bindings — Type: dict[str, astx.DataType]
Source: packages/irx/src/irx/analysis/call_arguments.py:277