From cde85dd8147883e56eb2fe6b56439df643fdc890 Mon Sep 17 00:00:00 2001 From: Bu Sun Kim Date: Tue, 4 May 2021 15:18:46 +0000 Subject: [PATCH] fix: add async client to --- gapic/templates/%namespace/%name_%version/%sub/__init__.py.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gapic/templates/%namespace/%name_%version/%sub/__init__.py.j2 b/gapic/templates/%namespace/%name_%version/%sub/__init__.py.j2 index 6c5b948a2d..8f2f3b7b68 100644 --- a/gapic/templates/%namespace/%name_%version/%sub/__init__.py.j2 +++ b/gapic/templates/%namespace/%name_%version/%sub/__init__.py.j2 @@ -11,6 +11,9 @@ from . import {{ subpackage }} {% for service in api.services.values()|sort(attribute='name') if service.meta.address.subpackage == api.subpackage_view %} from .services.{{ service.name|snake_case }} import {{ service.client_name }} +{% if 'grpc' in opts.transport %} +from .services.{{ service.name|snake_case }} import {{ service.async_client_name }} +{% endif %} {% endfor %} {# Import messages and enums from each proto.