From 8fbf4476a8f4a9c9a8bb07a64cc0bbb379e0afa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=C3=ADn=20=C5=98=C3=ADha?= <43958476+anriha@users.noreply.github.com> Date: Wed, 31 Aug 2022 01:05:29 +0200 Subject: [PATCH] Fix typechecker compatiblity checks in server streaming methods (#413) --- src/betterproto/templates/template.py.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/betterproto/templates/template.py.j2 b/src/betterproto/templates/template.py.j2 index 61c18632b..c80cd7748 100644 --- a/src/betterproto/templates/template.py.j2 +++ b/src/betterproto/templates/template.py.j2 @@ -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 %}