From 180ddc11ab7cedd0259c77b5b4c595c0f7cde788 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Wed, 14 Feb 2024 11:25:46 +0000 Subject: [PATCH] fix: resolve issue with missing import for certain enums in **/types/__init__.py --- .../%namespace/%name_%version/%sub/types/__init__.py.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gapic/templates/%namespace/%name_%version/%sub/types/__init__.py.j2 b/gapic/templates/%namespace/%name_%version/%sub/types/__init__.py.j2 index d5c74e8884..bec74ebf90 100644 --- a/gapic/templates/%namespace/%name_%version/%sub/types/__init__.py.j2 +++ b/gapic/templates/%namespace/%name_%version/%sub/types/__init__.py.j2 @@ -2,7 +2,7 @@ {% block content %} -{% for _, proto in api.protos|dictsort if proto.file_to_generate and proto.messages %} +{% for _, proto in api.protos|dictsort if proto.file_to_generate and proto.messages or proto.enums %} from .{{proto.module_name }} import ( {% for _, message in proto.messages|dictsort %} {{message.name }},