Skip to content

Commit

Permalink
Fix typechecker compatiblity checks in server streaming methods (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
anriha authored Aug 30, 2022
1 parent 591ec5e commit 8fbf447
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/betterproto/templates/template.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ class {{ service.py_name }}Base(ServiceBase):

{% endif %}
raise grpclib.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
{% if method.server_streaming %}
yield {{ method.py_output_message_type }}()
{% endif %}

{% endfor %}

Expand Down

0 comments on commit 8fbf447

Please sign in to comment.