Skip to content

Commit 1b4f04a

Browse files
committed
fix: style check
1 parent ed304cc commit 1b4f04a

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

pulsar/schema/schema_protobuf.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,18 @@ def _collect_file_descriptors(file_descriptor, visited, file_descriptor_set):
4444

4545
def _build_schema_definition(descriptor):
4646
"""
47-
Build the schema definition dict matching Java's ProtobufNativeSchemaData format:
48-
{
49-
"fileDescriptorSet": <base64-encoded FileDescriptorSet bytes>,
50-
"rootMessageTypeName": <full name of the root message>,
51-
"rootFileDescriptorName": <name of the root .proto file>
52-
}
53-
This mirrors ProtobufNativeSchemaUtils.serialize() in the Java client.
47+
Build the schema definition dict used by Java's ``ProtobufNativeSchemaData``.
48+
49+
The returned mapping has these keys:
50+
51+
.. code-block:: text
52+
53+
fileDescriptorSet
54+
rootMessageTypeName
55+
rootFileDescriptorName
56+
57+
``fileDescriptorSet`` contains base64-encoded ``FileDescriptorSet`` bytes.
58+
This mirrors ``ProtobufNativeSchemaUtils.serialize()`` in the Java client.
5459
"""
5560
file_descriptor_set = descriptor_pb2.FileDescriptorSet()
5661
_collect_file_descriptors(descriptor.file, set(), file_descriptor_set)

0 commit comments

Comments
 (0)