File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
gapic/templates/%namespace/%name_%version/%sub/types Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 1
1
{% extends '_base.py.j2' %}
2
2
3
3
{% block content %}
4
- {% for p in api .protos .values () if p .file_to_generate and p .messages -%}
5
- from .{{p.module_name }} import ({% for m in p .messages .values () %} {{ m.name }}, {% endfor %} )
6
- {% endfor %}
4
+ {% - for proto in api .protos .values () if proto .file_to_generate and proto .messages %}
5
+ from .{{proto.module_name }} import (
6
+ {% - for message in proto .messages .values () %}
7
+ {{message.name }}, {% endfor %}
8
+ {% - for enum in proto .enums .values () %}
9
+ {{ enum.name }}, {% endfor %}
10
+ ){% endfor %}
7
11
8
12
__all__ = (
9
- {% - for p in api .protos .values () if p .file_to_generate %}{% for m in p .messages .values () %}
10
- '{{ m.name }}',
11
- {% - endfor %}{% endfor %}
13
+ {% - for proto in api .protos .values () if proto .file_to_generate %}
14
+ {% - for message in proto .messages .values () %}
15
+ '{{ message.name }}',
16
+ {% - endfor -%}
17
+ {% - for enum in proto .enums .values () %}
18
+ '{{ enum.name }}',
19
+ {% - endfor -%}
20
+ {% - endfor %}
12
21
)
13
22
{% endblock %}
You can’t perform that action at this time.
0 commit comments