We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c1c41e commit 8a21536Copy full SHA for 8a21536
src/betterproto/templates/template.py.j2
@@ -73,6 +73,8 @@ class {{ service.py_name }}Stub(betterproto.ServiceStub):
73
{% if service.comment %}
74
{{ service.comment }}
75
76
+ {% elif not service.methods %}
77
+ pass
78
{% endif %}
79
{% for method in service.methods %}
80
async def {{ method.py_name }}(self
tests/inputs/config.py
@@ -18,4 +18,5 @@
18
"googletypes_service_returns_empty",
19
"googletypes_service_returns_googletype",
20
"example_service",
21
+ "empty_service",
22
}
tests/inputs/empty_service/empty_service.proto
@@ -0,0 +1,7 @@
1
+/* Empty service without comments */
2
+syntax = "proto3";
3
+
4
+package empty_service;
5
6
+service Test {
7
+}
0 commit comments