def resolve_aliases(data_type):
if not is_alias(data_type):<EOL><INDENT>return data_type<EOL><DEDENT>resolved = resolve_aliases(data_type.data_type)<EOL>data_type.data_type = resolved<EOL>return resolved<EOL>
Resolve all chained / nested aliases. This will recursively point
nested aliases to their resolved data type (first non-alias in the chain).

Note: This differs from unwrap_alias which simply identifies/returns
the resolved data type.

Args:
    data_type (DataType): The target DataType/Alias to resolve.
Return:
    DataType: The resolved type.