From 139c9589cc8a4a995700cdbab7330ea736c4e2bf Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Fri, 18 Oct 2024 12:44:07 -0400 Subject: [PATCH] fix: missing internal imports for python serialization Signed-off-by: Vincent Biret --- src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs b/src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs index f9d19b388c..4cf7b7fc80 100644 --- a/src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs +++ b/src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs @@ -646,6 +646,7 @@ private void WriteSerializerBodyForInheritedModel(bool inherits, CodeClass paren { if (inherits) writer.WriteLine("super().serialize(writer)"); + _codeUsingWriter.WriteInternalImports(parentClass, writer); foreach (var otherProp in parentClass .GetPropertiesOfKind(CodePropertyKind.Custom) .Where(static x => !x.ExistsInBaseType && !x.ReadOnly)