def attribute_format(frmt: str) -> BufferFormat:
    """
    Look up info about an attribute format
    :param frmt: Format of an
    :return: BufferFormat instance
    """
    try:
        return ATTRIBUTE_FORMATS[frmt]
    except KeyError:
        raise ValueError("Buffer format '{}' unknown. Valid formats: {}".format(
            frmt, ATTRIBUTE_FORMATS.keys()
        ))
def attribute_format(frmt: str) -> BufferFormat:
    """
    Look up info about an attribute format
    :param frmt: Format of an
    :return: BufferFormat instance
    """
    try:
        return ATTRIBUTE_FORMATS[frmt]
    except KeyError:
        raise ValueError("Buffer format '{}' unknown. Valid formats: {}".format(
            frmt, ATTRIBUTE_FORMATS.keys()
        ))
def attribute_format ( frmt : str ) -> BufferFormat : try : return ATTRIBUTE_FORMATS [ frmt ] except KeyError : raise ValueError ( "Buffer format '{}' unknown. Valid formats: {}" . format ( frmt , ATTRIBUTE_FORMATS . keys ( ) ) )
Look up info about an attribute format
    :param frmt: Format of an
    :return: BufferFormat instance
Look up info about an attribute format : param frmt : Format of an : return : BufferFormat instance