-
Notifications
You must be signed in to change notification settings - Fork 6.5k
grpc samples: specify type on --sample_rate to prevent TypeError #513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
I signed the CLA. |
CLAs look good, thanks! |
@zackse LGTM. Thanks for your contribution! |
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-cloud-asset](https://togithub.com/googleapis/python-asset) | `==3.14.1` -> `==3.14.2` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [google-cloud-bigquery](https://togithub.com/googleapis/python-bigquery) | `==3.3.3` -> `==3.3.5` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [google-cloud-pubsub](https://togithub.com/googleapis/python-pubsub) | `==2.13.7` -> `==2.13.9` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>googleapis/python-asset</summary> ### [`v3.14.2`](https://togithub.com/googleapis/python-asset/releases/tag/v3.14.2) [Compare Source](https://togithub.com/googleapis/python-asset/compare/v3.14.1...v3.14.2) ## 🤖 I have created a release *beep* *boop* #### [3.14.2](https://togithub.com/googleapis/python-asset/compare/v3.14.1...v3.14.2) (2022-10-10) ##### Bug Fixes - **deps:** Allow protobuf 3.19.5 ([#​508](https://togithub.com/googleapis/python-asset/issues/508)) ([818abbb](https://togithub.com/googleapis/python-asset/commit/818abbbcbb829a726d18ba1e7e7e03f997d4256a)) </details> <details> <summary>googleapis/python-bigquery</summary> ### [`v3.3.5`](https://togithub.com/googleapis/python-bigquery/releases/tag/v3.3.5) [Compare Source](https://togithub.com/googleapis/python-bigquery/compare/v3.3.3...v3.3.5) ##### Bug Fixes - **deps:** Allow protobuf 3.19.5 ([#​1379](https://togithub.com/googleapis/python-bigquery/issues/1379)) ([3e4a074](https://togithub.com/googleapis/python-bigquery/commit/3e4a074a981eb2920c5f9a711c253565d4844858)) </details> <details> <summary>googleapis/python-pubsub</summary> ### [`v2.13.9`](https://togithub.com/googleapis/python-pubsub/releases/tag/v2.13.9) [Compare Source](https://togithub.com/googleapis/python-pubsub/compare/v2.13.7...v2.13.9) ##### Bug Fixes - **deps:** Allow protobuf 3.19.5 ([#​801](https://togithub.com/googleapis/python-pubsub/issues/801)) ([fa23503](https://togithub.com/googleapis/python-pubsub/commit/fa235033481783c2ec378b2a26b223bdff206461)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-asset). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yMzAuMCIsInVwZGF0ZWRJblZlciI6IjMyLjIzMC4wIn0=-->
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-cloud-asset](https://togithub.com/googleapis/python-asset) | `==3.14.1` -> `==3.14.2` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [google-cloud-bigquery](https://togithub.com/googleapis/python-bigquery) | `==3.3.3` -> `==3.3.5` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [google-cloud-pubsub](https://togithub.com/googleapis/python-pubsub) | `==2.13.7` -> `==2.13.9` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>googleapis/python-asset</summary> ### [`v3.14.2`](https://togithub.com/googleapis/python-asset/releases/tag/v3.14.2) [Compare Source](https://togithub.com/googleapis/python-asset/compare/v3.14.1...v3.14.2) ## 🤖 I have created a release *beep* *boop* #### [3.14.2](https://togithub.com/googleapis/python-asset/compare/v3.14.1...v3.14.2) (2022-10-10) ##### Bug Fixes - **deps:** Allow protobuf 3.19.5 ([#​508](https://togithub.com/googleapis/python-asset/issues/508)) ([818abbb](https://togithub.com/googleapis/python-asset/commit/818abbbcbb829a726d18ba1e7e7e03f997d4256a)) </details> <details> <summary>googleapis/python-bigquery</summary> ### [`v3.3.5`](https://togithub.com/googleapis/python-bigquery/releases/tag/v3.3.5) [Compare Source](https://togithub.com/googleapis/python-bigquery/compare/v3.3.3...v3.3.5) ##### Bug Fixes - **deps:** Allow protobuf 3.19.5 ([#​1379](https://togithub.com/googleapis/python-bigquery/issues/1379)) ([3e4a074](https://togithub.com/googleapis/python-bigquery/commit/3e4a074a981eb2920c5f9a711c253565d4844858)) </details> <details> <summary>googleapis/python-pubsub</summary> ### [`v2.13.9`](https://togithub.com/googleapis/python-pubsub/releases/tag/v2.13.9) [Compare Source](https://togithub.com/googleapis/python-pubsub/compare/v2.13.7...v2.13.9) ##### Bug Fixes - **deps:** Allow protobuf 3.19.5 ([#​801](https://togithub.com/googleapis/python-pubsub/issues/801)) ([fa23503](https://togithub.com/googleapis/python-pubsub/commit/fa235033481783c2ec378b2a26b223bdff206461)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-asset). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yMzAuMCIsInVwZGF0ZWRJblZlciI6IjMyLjIzMC4wIn0=-->
The
--sample_rate
argument inspeech/grpc/transcribe.py
andspeech/grpc/transcribe_async.py
did not specify a type, which meant the value would be treated as a string, resulting in an exception during protobuf conversion:Hope this helps. Thanks for this service and the samples!