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 52e18dd commit ddd9a2fCopy full SHA for ddd9a2f
README.md
@@ -347,6 +347,21 @@ By default mypy-protobuf will output servicer stubs with abstract methods. To ou
347
protoc --python_out=output/location --mypy_grpc_out=generate_concrete_servicer_stubs:output/location
348
```
349
350
+### `sync_only/async_only`
351
+
352
+By default, generated GRPC stubs are compatible with both sync and async variants. If you only
353
+want sync or async GRPC stubs, use this option:
354
355
+```
356
+protoc --python_out=output/location --mypy_grpc_out=sync_only:output/location
357
358
359
+or
360
361
362
+protoc --python_out=output/location --mypy_grpc_out=async_only:output/location
363
364
365
### Output suppression
366
367
To suppress output, you can run
0 commit comments