Skip to content

Commit 0bb013a

Browse files
hebaalazzehohmayr
andauthored
Update packages/gapic-generator/gapic/templates/%namespace/%name_%version/%sub/_compat.py.j2
Co-authored-by: ohmayr <omairnaveed@ymail.com>
1 parent 1df077f commit 0bb013a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • packages/gapic-generator/gapic/templates/%namespace/%name_%version/%sub

packages/gapic-generator/gapic/templates/%namespace/%name_%version/%sub/_compat.py.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
{% block content %}
44

5-
"""A compatibility module for older versions of google-api-core."""
5+
6+
{% set has_auto_populated_fields = api.all_method_settings.values()|map(attribute="auto_populated_fields", default=[])|select|list %}
67
{# TODO(https://github.com/googleapis/google-cloud-python/issues/17813):
78
Clean up this file/functions when the minimum supported version of
89
google-api-core has the functions in `_compat.py.j2`. #}

0 commit comments

Comments
 (0)