From b2ece33dae6e93e2f864f5c3a1083adab1fefcf7 Mon Sep 17 00:00:00 2001 From: Richard Belleville Date: Thu, 3 Nov 2022 16:47:50 -0700 Subject: [PATCH] Add protobuf type stub generation to guides (#1068) --- content/en/docs/languages/python/basics.md | 2 +- content/en/docs/languages/python/quickstart.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/docs/languages/python/basics.md b/content/en/docs/languages/python/basics.md index 9e69123..5f48022 100644 --- a/content/en/docs/languages/python/basics.md +++ b/content/en/docs/languages/python/basics.md @@ -145,7 +145,7 @@ $ pip install grpcio-tools Use the following command to generate the Python code: ```sh -$ python -m grpc_tools.protoc -I../../protos --python_out=. --grpc_python_out=. ../../protos/route_guide.proto +$ python -m grpc_tools.protoc -I../../protos --python_out=. --pyi_out=. --grpc_python_out=. ../../protos/route_guide.proto ``` Note that as we've already provided a version of the generated code in the diff --git a/content/en/docs/languages/python/quickstart.md b/content/en/docs/languages/python/quickstart.md index b78b06d..fa0afe8 100644 --- a/content/en/docs/languages/python/quickstart.md +++ b/content/en/docs/languages/python/quickstart.md @@ -151,7 +151,7 @@ service definition. From the `examples/python/helloworld` directory, run: ```sh -$ python -m grpc_tools.protoc -I../../protos --python_out=. --grpc_python_out=. ../../protos/helloworld.proto +$ python -m grpc_tools.protoc -I../../protos --python_out=. --pyi_out=. --grpc_python_out=. ../../protos/helloworld.proto ``` This regenerates `helloworld_pb2.py` which contains our generated request and