Fix function name for Pack method for structs

This commit is contained in:
Jung Ko 2024-10-12 23:37:04 -07:00
parent 807adb73b2
commit 90c5472e3a
1 changed files with 1 additions and 1 deletions

View File

@ -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):";