Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit 2ce7787

Browse files
committed
Convert iterable to iterator
1 parent 4a215ab commit 2ce7787

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/betterproto2_compiler/templates/service_stub_sync.py.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"{{ method.route }}",
3434
{{ method.py_input_message_type }}.SerializeToString,
3535
{{ method.py_output_message_type }}.FromString,
36-
)(messages):
36+
)(iter(messages)):
3737
yield response
3838
{% else %}
3939
{% if method.is_input_msg_empty %}
@@ -55,7 +55,7 @@
5555
"{{ method.route }}",
5656
{{ method.py_input_message_type }}.SerializeToString,
5757
{{ method.py_output_message_type }}.FromString,
58-
)(messages)
58+
)(iter(messages))
5959
{% else %}
6060
{% if method.is_input_msg_empty %}
6161
if message is None:

0 commit comments

Comments
 (0)