Uses protocol
to convert value
Source code in /home/runner/work/arc/arc/arc/types/convert.py
| def convert_type(
protocol: type[TypeProtocol],
value: t.Any,
info: types.TypeInfo[T],
) -> T:
"""Uses `protocol` to convert `value`"""
return api.dispatch_args(protocol.__convert__, value, info)
|