massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / protobuf / google / protobuf / message_factory.pyi
1 from typing import Any, Dict, Iterable, Optional, Type
2
3 from google.protobuf.descriptor import Descriptor
4 from google.protobuf.descriptor_pb2 import FileDescriptorProto
5 from google.protobuf.descriptor_pool import DescriptorPool
6 from google.protobuf.message import Message
7
8 class MessageFactory:
9     pool: Any
10     def __init__(self, pool: Optional[DescriptorPool] = ...) -> None: ...
11     def GetPrototype(self, descriptor: Descriptor) -> Type[Message]: ...
12     def GetMessages(self, files: Iterable[str]) -> Dict[str, Type[Message]]: ...
13
14 def GetMessages(file_protos: Iterable[FileDescriptorProto]) -> Dict[str, Type[Message]]: ...