File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
third_party/2and3/google/protobuf Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ from google.protobuf.message import (
2727)
2828
2929from 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
5152NullValueValue = typing___NewType ('NullValueValue' , builtin___int )
5253type___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+
5459class _NullValue (google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper [NullValueValue ]):
5560 DESCRIPTOR : google___protobuf___descriptor___EnumDescriptor = ...
5661 NULL_VALUE = typing___cast (NullValueValue , 0 )
You can’t perform that action at this time.
0 commit comments