mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Fix protobuf stubtest errors (#8758)
This commit is contained in:
@@ -25,10 +25,12 @@ google.protobuf.text_format.MessageToBytes
|
||||
google.protobuf.service.Service.GetDescriptor
|
||||
|
||||
# These are deliberately omitted in the stub.
|
||||
# The classes also can't be constructed directly anyway,
|
||||
# The classes can't be constructed directly anyway,
|
||||
# so the signatures of their constructors are somewhat irrelevant.
|
||||
google.protobuf.descriptor.Descriptor.__init__
|
||||
google.protobuf.descriptor.Descriptor.__new__
|
||||
google.protobuf.descriptor.ServiceDescriptor.__init__
|
||||
google.protobuf.descriptor.ServiceDescriptor.__new__
|
||||
|
||||
# Set to None at runtime - which doesn't match the Sequence base class.
|
||||
# It's a hack - just allow it.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class GeneratedProtocolMessageType(type):
|
||||
def __new__(cls, name, bases, dictionary): ...
|
||||
def __init__(cls, name, bases, dictionary) -> None: ...
|
||||
def __init__(__self, name, bases, dictionary) -> None: ...
|
||||
|
||||
def ParseMessage(descriptor, byte_str): ...
|
||||
def MakeClass(descriptor): ...
|
||||
|
||||
Reference in New Issue
Block a user