|
2 | 2 | # carefully in mypy-protobuf which internally runs stubtest. Skip those here.
|
3 | 3 | google.protobuf\..*_pb2\..*
|
4 | 4 |
|
5 |
| -google.protobuf.internal.containers.BaseContainer.sort |
6 | 5 | # While Message and Descriptor are both defined with a null DESCRIPTOR,
|
7 | 6 | # subclasses of Message and instances of EnumTypeWrapper require this value to
|
8 | 7 | # be set, and since these type stubs are intended for use with protoc-generated
|
9 | 8 | # python it's more accurate to make them non-nullable.
|
10 | 9 | google.protobuf.internal.enum_type_wrapper.EnumTypeWrapper.DESCRIPTOR
|
11 | 10 | google.protobuf.message.Message.DESCRIPTOR
|
| 11 | + |
| 12 | +# Exists at runtime, but via a __getitem__/__setitem__ hack |
| 13 | +# See https://github.com/protocolbuffers/protobuf/blob/3ea30d80847cd9561db570ae7f673afc15523545/python/google/protobuf/message.py#L67 |
| 14 | +google.protobuf.message.Message.Extensions |
| 15 | + |
| 16 | +# These are typed as (self, **kwargs) at runtime as thin wrapper functions |
| 17 | +# around the underlying true typing. We prefer the true typing |
| 18 | +google.protobuf.internal.containers.BaseContainer.sort |
12 | 19 | google.protobuf.message.Message.SerializePartialToString
|
13 | 20 | google.protobuf.message.Message.SerializeToString
|
14 |
| -google.protobuf.service.Service.GetDescriptor |
15 | 21 | google.protobuf.text_format.MessageToBytes
|
| 22 | + |
| 23 | +# Stubbed as static method, but actually exists as a property that's |
| 24 | +# a function. Typeshed's typing is more useful |
| 25 | +google.protobuf.service.Service.GetDescriptor |
0 commit comments