def attribute_format(frmt: str) -> BufferFormat:
try:<EOL><INDENT>return ATTRIBUTE_FORMATS[frmt]<EOL><DEDENT>except KeyError:<EOL><INDENT>raise ValueError("<STR_LIT>".format(<EOL>frmt, ATTRIBUTE_FORMATS.keys()<EOL>))<EOL><DEDENT>
Look up info about an attribute format
:param frmt: Format of an
:return: BufferFormat instance