Makes DESCRIPTOR non nullable again (#7125)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Aaron SykesandJelle Zijlstra authored and GitHub committed 2022-02-04 22:05:58 +02:00
1 parent 51cdd2c6be
commit ebcdcfa24e
3 files changed
+8 -2

No files matched your search

@@ -3,6 +3,12 @@
google.protobuf\..*_pb2\..*
google.protobuf.internal.containers.BaseContainer.sort
# While Message and Descriptor are both defined with a null DESCRIPTOR,
# subclasses of Message and instances of EnumTypeWrapper require this value to
# be set, and since these type stubs are intended for use with protoc-generated
# python it's more accurate to make them non-nullable.
google.protobuf.internal.enum_type_wrapper.EnumTypeWrapper.DESCRIPTOR
google.protobuf.message.Message.DESCRIPTOR
google.protobuf.message.Message.SerializePartialToString
google.protobuf.message.Message.SerializeToString
google.protobuf.service.Service.GetDescriptor