google.protobuf: Add an __init__ stub to fix type checking (#8982)

This commit is contained in:
Brendan Graham authored and GitHub committed 2022-10-25 13:20:43 -07:00
1 parent 8ca0394ead
commit f4ef058169
2 files changed
+34 -2

No files matched your search

@@ -27,9 +27,7 @@ google.protobuf.service.Service.GetDescriptor
# These are deliberately omitted in the stub.
# 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.