aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Abel <22837557+uael@users.noreply.github.com>2023-11-05 23:03:39 -0800
committerLucas Abel <22837557+uael@users.noreply.github.com>2023-11-05 23:20:51 -0800
commit6c85d84a17e30838dd2ace4589ca2c2f65cfcab9 (patch)
tree83d3b5cb1b8f908dc6669657ebc0a856728ffc7a
parent40c5c68068008e21b5b6b72b07195ec327be6588 (diff)
downloadbt-test-interfaces-6c85d84a17e30838dd2ace4589ca2c2f65cfcab9.tar.gz
Update protoc-gen-custom_grpc
-rwxr-xr-xpython/_build/protoc-gen-custom_grpc10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/_build/protoc-gen-custom_grpc b/python/_build/protoc-gen-custom_grpc
index cb8adf4..1c620c5 100755
--- a/python/_build/protoc-gen-custom_grpc
+++ b/python/_build/protoc-gen-custom_grpc
@@ -453,12 +453,12 @@ _HEADER = '''# Copyright 2022 Google LLC
# limitations under the License.
"""Generated python gRPC interfaces."""
+
+from __future__ import annotations
'''
_UTILS_PY = f'''{_HEADER}
-from __future__ import annotations
-
import asyncio
import queue
import grpc
@@ -595,9 +595,9 @@ for file_name in _REQUEST.file_to_generate:
content='def unwrap(x):\n assert x\n return x\n'
))
- pyi_imports: List[str] = ['from __future__ import annotations # type: ignore']
- grpc_imports: List[str] = ['from __future__ import annotations # type: ignore', 'import grpc']
- grpc_aio_imports: List[str] = ['from __future__ import annotations # type: ignore', 'import grpc', 'import grpc.aio']
+ pyi_imports: List[str] = []
+ grpc_imports: List[str] = ['import grpc']
+ grpc_aio_imports: List[str] = ['import grpc', 'import grpc.aio']
enums = '\n'.join(sum([generate_enum(pyi_imports, file, enum, _FILES) for enum in file.enum_type], []))
messages = '\n'.join(sum([generate_message(pyi_imports, file, message, _FILES) for message in file.message_type], []))