Skip to content

Commit

Permalink
fix: sort subpackages in %namespace/%name/__init__.py (#836)
Browse files Browse the repository at this point in the history
Small follow up to #806
  • Loading branch information
busunkim96 authored Apr 12, 2021
1 parent 5e85fbe commit 90cf882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gapic/templates/%namespace/%name/__init__.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ from {% if api.naming.module_namespace %}{{ api.naming.module_namespace|join('.'
__all__ = (
{%- filter indent %}
{% filter sort_lines -%}
{% for subpackage in api.subpackages.keys() -%}
{% for subpackage, _ in api.subpackages|dictsort -%}
'{{ subpackage }}',
{% endfor -%}
{% for service in api.services.values()|sort(attribute='name')
Expand Down

0 comments on commit 90cf882

Please sign in to comment.