Properly type the ToJsonString method of time well known types in google protobuf (#2656)

This commit is contained in:
Pascal Corpet
2018-11-30 13:42:58 +01:00
committed by Sebastian Rittau
parent 407e4bb679
commit b4b81fba24

View File

@@ -15,7 +15,7 @@ class Any_:
def Is(self, descriptor: Any): ...
class Timestamp:
def ToJsonString(self): ...
def ToJsonString(self) -> str: ...
seconds: Any = ...
nanos: Any = ...
def FromJsonString(self, value: Any) -> None: ...
@@ -32,7 +32,7 @@ class Timestamp:
def FromDatetime(self, dt: datetime) -> None: ...
class Duration:
def ToJsonString(self): ...
def ToJsonString(self) -> str: ...
seconds: Any = ...
nanos: Any = ...
def FromJsonString(self, value: Any) -> None: ...
@@ -48,7 +48,7 @@ class Duration:
def FromTimedelta(self, td: Any) -> None: ...
class FieldMask:
def ToJsonString(self): ...
def ToJsonString(self) -> str: ...
def FromJsonString(self, value: Any) -> None: ...
def IsValidForDescriptor(self, message_descriptor: Any): ...
def AllFieldsFromDescriptor(self, message_descriptor: Any) -> None: ...