def class_name_for_annotation_type(annotation_type, ns=None):
assert isinstance(annotation_type, AnnotationType)<EOL>name = fmt_class(annotation_type.name)<EOL>if ns:<EOL><INDENT>return prefix_with_ns_if_necessary(name, annotation_type.namespace, ns)<EOL><DEDENT>return name<EOL>
Same as class_name_for_data_type, but works with annotation types.