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

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

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

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

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

Source: packages/irx/src/irx/analysis/call_arguments.py:277

Search documentation

Type to search.