protobuf: Add some return types (#9259)

This commit is contained in:
Sam Bull
2022-11-23 16:17:39 +00:00
committed by GitHub
parent 6cd33f951d
commit 956690dec2
2 changed files with 4 additions and 4 deletions

View File

@@ -5,9 +5,9 @@ class Any:
type_url: tAny = ...
value: tAny = ...
def Pack(self, msg: tAny, type_url_prefix: str = ..., deterministic: tAny | None = ...) -> None: ...
def Unpack(self, msg: tAny): ...
def TypeName(self): ...
def Is(self, descriptor: tAny): ...
def Unpack(self, msg: tAny) -> bool: ...
def TypeName(self) -> str: ...
def Is(self, descriptor: tAny) -> bool: ...
class Timestamp:
def ToJsonString(self) -> str: ...

View File

@@ -13,4 +13,4 @@ class SymbolDatabase(MessageFactory):
def GetSymbol(self, symbol: str) -> type[Message]: ...
def GetMessages(self, files: Iterable[str]) -> dict[str, type[Message]]: ...
def Default(): ...
def Default() -> SymbolDatabase: ...