diff --git a/clif/pybind11/generator.py b/clif/pybind11/generator.py index 9ccb5cb1..80e8c0de 100644 --- a/clif/pybind11/generator.py +++ b/clif/pybind11/generator.py @@ -197,6 +197,9 @@ def generate_from(self, ast: ast_pb2.AST): if self._codegen_info.requires_status: yield I + I + ('pybind11::module_::import(' '"util.task.python.error");') + yield I + I + 'pybind11_protobuf::check_unknown_fields::' + yield I + I + ' ExtensionsWithUnknownFieldsPolicy::' + yield I + I + ' WeakEnableFallbackToSerializeParse();' yield I + I + 'pybind11_protobuf::ImportNativeProtoCasters();' for decl in ast.decls: