API reference
python:irx:irx.analysis.types.is_assignable
function is_assignable
is_assignable(target: astx.DataType | None, value: astx.DataType | None) -> bool
Source: packages/irx/src/irx/analysis/types.py:1076
Return whether a value type can be assigned to a target type.
Parameters
-
target — Destination of the operation.; Type: astx.DataType | None
-
value — Value to process.; Type: astx.DataType | None
Returns
Whether a value type can be assigned to a target type.; Type: bool