From 90c5472e3a560dd25ab51b1181f4f54e4dacbba4 Mon Sep 17 00:00:00 2001 From: Jung Ko Date: Sat, 12 Oct 2024 23:37:04 -0700 Subject: [PATCH] Fix function name for Pack method for structs --- src/idl_gen_python.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/idl_gen_python.cpp b/src/idl_gen_python.cpp index 1c814cd53cf..58770684dc1 100644 --- a/src/idl_gen_python.cpp +++ b/src/idl_gen_python.cpp @@ -2097,7 +2097,7 @@ class PythonGenerator : public BaseGenerator { void GenPackForStruct(const StructDef &struct_def, std::string *code_ptr) const { auto &code = *code_ptr; - const auto struct_fn = namer_.Function(struct_def); + const auto struct_fn = namer_.Type(struct_def); GenReceiverForObjectAPI(struct_def, code_ptr); code += "Pack(self, builder):";