Skip to content

Commit add4d92

Browse files
ilevkivskyiIvan Levkivskyi
andauthored
A temporary protobuf patch (#4907)
Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
1 parent 916a3a0 commit add4d92

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

third_party/2and3/google/protobuf/struct_pb2.pyi

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ from google.protobuf.message import (
2727
)
2828

2929
from typing import (
30+
Any,
3031
Iterable as typing___Iterable,
3132
Mapping as typing___Mapping,
3233
NewType as typing___NewType,
@@ -50,7 +51,11 @@ DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
5051

5152
NullValueValue = typing___NewType('NullValueValue', builtin___int)
5253
type___NullValueValue = NullValueValue
53-
NullValue: _NullValue
54+
55+
# We temporary set this to Any to simplify mypy-protobuf migration,
56+
# replace with `NullValue: _NullValue` after mypy-protobuf 1.24 is out.
57+
NullValue = Any
58+
5459
class _NullValue(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[NullValueValue]):
5560
DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ...
5661
NULL_VALUE = typing___cast(NullValueValue, 0)

0 commit comments

Comments
 (0)