Skip to content

Commit 9e98b93

Browse files
authored
fix: add typing for header_params (#17914)
Towards #17637
1 parent de53298 commit 9e98b93

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/gapic-generator/gapic

packages/gapic-generator/gapic/ads-templates/%namespace/%name/%version/%sub/services/%service/_shared_macros.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ except ImportError: # pragma: NO COVER
6565

6666
{% macro create_metadata(method) %}
6767
{% if method.explicit_routing %}
68-
header_params = {}
68+
header_params: dict[str, str] = {}
6969
{% if not method.client_streaming %}
7070
{% for routing_param in method.routing_rule.routing_parameters %}
7171
{% if routing_param.path_template %} {# Need to match. #}

packages/gapic-generator/gapic/templates/%namespace/%name_%version/%sub/services/%service/_shared_macros.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ except ImportError: # pragma: NO COVER
5454

5555
{% macro create_metadata(method) %}
5656
{% if method.explicit_routing %}
57-
header_params = {}
57+
header_params: dict[str, str] = {}
5858
{% if not method.client_streaming %}
5959
{% for routing_param in method.routing_rule.routing_parameters %}
6060
{% if routing_param.path_template %} {# Need to match. #}

0 commit comments

Comments
 (0)