Skip to content

Commit ddd9a2f

Browse files
Update readme with sync_only/async_only option
1 parent 52e18dd commit ddd9a2f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,21 @@ By default mypy-protobuf will output servicer stubs with abstract methods. To ou
347347
protoc --python_out=output/location --mypy_grpc_out=generate_concrete_servicer_stubs:output/location
348348
```
349349

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+
350365
### Output suppression
351366

352367
To suppress output, you can run

0 commit comments

Comments
 (0)