Format a type name for printing.

def _format_type(cls):
    """Format a type name for printing."""
    if cls.__module__ == _BUILTIN_MODULE:
        return cls.__name__
    else:
        return '%s.%s' % (cls.__module__, cls.__name__)