async def render(<EOL>text: TransText,<EOL>request: Optional['<STR_LIT>'],<EOL>multi_line=False) -> Union[Text, List[Text]]:
if isinstance(text, str):<EOL><INDENT>out = [text]<EOL><DEDENT>elif isinstance(text, StringToTranslate):<EOL><INDENT>out = await text.render_list(request)<EOL><DEDENT>else:<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>if multi_line:<EOL><INDENT>return out<EOL><DEDENT>else:<EOL><INDENT>return '<STR_LIT:U+0020>'.join(out)<EOL><DEDENT>
Render either a normal string either a string to translate into an actual
string for the specified request.