API reference

python:irx:irx.analysis.types.sequence_element_type

function sequence_element_type

Variant 1

sequence_element_type(type_: astx.DataType | None) -> astx.DataType | None

Return the exact element contract for a supported sized source.

Parameters

Returns

The exact element contract for a supported sized source.; Type: astx.DataType | None

Variant 2

sequence_element_type(type_: astx.Bytes) -> astx.DataType

Resolve immutable octets without mutable-list coercion.

Parameters

Returns

Resolved immutable octets without mutable-list coercion.; Type: astx.DataType

Variant 3

sequence_element_type(type_: astx.ListType) -> astx.DataType | None

Resolve a homogeneous list element without widening it.

Parameters

Returns

Resolved a homogeneous list element without widening it.; Type: astx.DataType | None

Variant 4

sequence_element_type(type_: astx.TensorType) -> astx.DataType | None

Resolve rank-one tensors, deferring unknown rank to a checked adapter.

Parameters

Returns

Resolved rank-one tensors, deferring unknown rank to a checked adapter.; Type: astx.DataType | None

Variant 5

sequence_element_type(type_: astx.SeriesType) -> astx.DataType | None

Preserve a Series element's scalar width and validity.

Parameters

Returns

Result of this operation: preserve a Series element's scalar width and validity.; Type: astx.DataType | None

Variant 6

sequence_element_type(type_: astx.SequenceType) -> astx.DataType

Forward an existing sequence's exact element contract.

Parameters

Returns

Result of this operation: forward an existing sequence's exact element contract.; Type: astx.DataType

Source: packages/irx/src/irx/analysis/types.py:55

Search documentation

Type to search.