Skip to content

Commit

Permalink
fix: add async client to %name_%version/__init__.py (#859)
Browse files Browse the repository at this point in the history
  • Loading branch information
busunkim96 authored May 4, 2021
1 parent b08fa71 commit 391fdb8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gapic/templates/%namespace/%name_%version/%sub/__init__.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 391fdb8

Please sign in to comment.