diff --git a/packages/quicktype-core/src/language/Python.ts b/packages/quicktype-core/src/language/Python.ts index 7da7dc74d..18fc2d97d 100644 --- a/packages/quicktype-core/src/language/Python.ts +++ b/packages/quicktype-core/src/language/Python.ts @@ -461,8 +461,8 @@ export class PythonRenderer extends ConvenienceRenderer { this.emitLine("pass"); } else { this.forEachClassProperty(t, "none", (name, jsonName, cp) => { - this.emitDescription(this.descriptionForClassProperty(t, jsonName)); this.emitLine(name, this.typeHint(": ", this.pythonType(cp.type, true))); + this.emitDescription(this.descriptionForClassProperty(t, jsonName)); }); } this.ensureBlankLine();