def gen_typedefs(self) -> str:
rval = []<EOL>for typ in self.schema.types.values():<EOL><INDENT>typname = self.python_name_for(typ.name)<EOL>parent = self.python_name_for(typ.typeof)<EOL>rval.append(f'<STR_LIT>')<EOL><DEDENT>return '<STR_LIT>'.join(rval) + ('<STR_LIT:\n>' if rval else '<STR_LIT>')<EOL>
Generate python type declarations for all defined types