From 1ac499c78beb3d277f6830b1ae065e72ef9b2bf2 Mon Sep 17 00:00:00 2001 From: Tsung-Ju Lii Date: Fri, 17 Nov 2023 02:33:21 +0800 Subject: [PATCH] Fix Python class member comment placement Signed-off-by: Tsung-Ju Lii --- packages/quicktype-core/src/language/Python.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();