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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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