protobuf: Delete some __new__ and __init__ methods (#8088)

This commit is contained in:
Alex Waygood
2022-06-16 16:10:14 +01:00
committed by GitHub
parent 4967c8bc12
commit 43f923b6c2
2 changed files with 9 additions and 68 deletions

View File

@@ -23,3 +23,12 @@ google.protobuf.text_format.MessageToBytes
# Stubbed as static method, but actually exists as a property that's
# a function. Typeshed's typing is more useful
google.protobuf.service.Service.GetDescriptor
# These are deliberately omitted in the stub
# due to the fact that these classes have conflicting signatures for __init__/__new__.
# The classes also 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__