Fix typechecker compatiblity checks in server streaming methods (#413)

This commit is contained in:
Antonín Říha
2022-08-31 01:05:29 +02:00
committed by GitHub
parent 591ec5efb3
commit 8fbf4476a8

View File

@@ -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 %}