Skip to content

Commit c26b804

Browse files
authored
Remove a missing import (#4821)
Works around #4815, although a proper fix is needed.
1 parent 8da5322 commit c26b804

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

third_party/2and3/google/protobuf/util/json_format_proto3_pb2.pyi

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# @generated by generate_proto_mypy_stubs.py. Do not edit!
2+
3+
# Manually edited to work around #4815.
4+
25
import sys
36
from google.protobuf.any_pb2 import (
47
Any as google___protobuf___any_pb2___Any,
@@ -42,9 +45,12 @@ from google.protobuf.timestamp_pb2 import (
4245
Timestamp as google___protobuf___timestamp_pb2___Timestamp,
4346
)
4447

45-
from google.protobuf.unittest_pb2 import (
46-
TestAllExtensions as google___protobuf___unittest_pb2___TestAllExtensions,
47-
)
48+
# Work-around #4815
49+
# from google.protobuf.unittest_pb2 import (
50+
# TestAllExtensions as google___protobuf___unittest_pb2___TestAllExtensions,
51+
# )
52+
from typing import Any
53+
google___protobuf___unittest_pb2___TestAllExtensions = Any
4854

4955
from google.protobuf.wrappers_pb2 import (
5056
BoolValue as google___protobuf___wrappers_pb2___BoolValue,

0 commit comments

Comments
 (0)