Allow empty services (#222)

Fixes issue #220
This commit is contained in:
MinJune Kim
2021-03-13 05:49:58 +09:00
committed by GitHub
parent 6c1c41e9cc
commit 8a215367ad
3 changed files with 10 additions and 0 deletions

View File

@@ -73,6 +73,8 @@ class {{ service.py_name }}Stub(betterproto.ServiceStub):
{% if service.comment %}
{{ service.comment }}
{% elif not service.methods %}
pass
{% endif %}
{% for method in service.methods %}
async def {{ method.py_name }}(self