def _write_line(self, text: str='') -> None:
    '\n        Writes a line with Python code to the generate code buffer.\n\n        :param str text: The line with Python code.\n        '
    if text:
        self._code += (str(text) + '\n')
    else:
        self._code += '\n'
Writes a line with Python code to the generate code buffer.

:param str text: The line with Python code.
def _write_line(self, text: str=) -> None:
    '\n        Writes a line with Python code to the generate code buffer.\n\n        :param str text: The line with Python code.\n        '
    if text:
        self._code += (str(text) + '\n')
    else:
        self._code += '\n'