From 4c72948575db765ee672a33c5cd257e3ff17bd20 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 8 Sep 2026 00:24:14 +0200 Subject: [PATCH] [api] Say why the pointer buffer base keeps its constructor --- script/api_protobuf/api_protobuf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/api_protobuf/api_protobuf.py b/script/api_protobuf/api_protobuf.py index a6bf2a0d7c..bdfa58a3b3 100755 --- a/script/api_protobuf/api_protobuf.py +++ b/script/api_protobuf/api_protobuf.py @@ -1134,6 +1134,8 @@ class PointerToBufferTypeBase(TypeInfo): def can_use_dump_field(cls) -> bool: return False + # Only here to make needs_decode required: the null string default keys off it, so a call + # site must not fall back on the base class default def __init__( self, field: descriptor.FieldDescriptorProto, needs_decode: bool ) -> None: