def get_custom_annotations_for_alias(data_type):
<EOL>result = []<EOL>data_type, _ = unwrap_nullable(data_type)<EOL>while is_alias(data_type):<EOL><INDENT>result.extend(data_type.custom_annotations)<EOL>data_type, _ = unwrap_nullable(data_type.data_type)<EOL><DEDENT>return result<EOL>
Given a Stone data type, returns all custom annotations applied to it.