[api] Say why the pointer buffer base keeps its constructor

This commit is contained in:
J. Nick Koston
2026-09-08 00:24:14 +02:00
parent 77d850cbe2
commit 4c72948575
+2
View File
@@ -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: