Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit 2c57f95

Browse files
docs: fix docstring formatting (#218)
* docs: fix docstring formatting Committer: @parthea PiperOrigin-RevId: 409547475 Source-Link: googleapis/googleapis@4be99b0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/55a8479e1d4d514e4e3ccfe1f855067d1412f401 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTVhODQ3OWUxZDRkNTE0ZTRlM2NjZmUxZjg1NTA2N2QxNDEyZjQwMSJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * remove workarounds in owlbot.py Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent 0f03d61 commit 2c57f95

File tree

4 files changed

+20
-25
lines changed

4 files changed

+20
-25
lines changed

google/cloud/texttospeech_v1/services/text_to_speech/async_client.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,13 @@ async def list_voices(
179179
`BCP-47 <https://www.rfc-editor.org/rfc/bcp/bcp47.txt>`__
180180
language tag. If specified, the ListVoices call will
181181
only return voices that can be used to synthesize this
182-
language_code. E.g. when specifying "en-NZ", you will
183-
get supported "en-\*" voices; when specifying "no", you
184-
will get supported "no-\*" (Norwegian) and "nb-\*"
185-
(Norwegian Bokmal) voices; specifying "zh" will also get
186-
supported "cmn-\*" voices; specifying "zh-hk" will also
187-
get supported "yue-\*" voices.
182+
language_code. E.g. when specifying ``"en-NZ"``, you
183+
will get supported ``"en-\*"`` voices; when specifying
184+
``"no"``, you will get supported ``"no-\*"`` (Norwegian)
185+
and ``"nb-\*"`` (Norwegian Bokmal) voices; specifying
186+
``"zh"`` will also get supported ``"cmn-\*"`` voices;
187+
specifying ``"zh-hk"`` will also get supported
188+
``"yue-\*"`` voices.
188189
189190
This corresponds to the ``language_code`` field
190191
on the ``request`` instance; if ``request`` is provided, this

google/cloud/texttospeech_v1/services/text_to_speech/client.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -359,12 +359,13 @@ def list_voices(
359359
`BCP-47 <https://www.rfc-editor.org/rfc/bcp/bcp47.txt>`__
360360
language tag. If specified, the ListVoices call will
361361
only return voices that can be used to synthesize this
362-
language_code. E.g. when specifying "en-NZ", you will
363-
get supported "en-\*" voices; when specifying "no", you
364-
will get supported "no-\*" (Norwegian) and "nb-\*"
365-
(Norwegian Bokmal) voices; specifying "zh" will also get
366-
supported "cmn-\*" voices; specifying "zh-hk" will also
367-
get supported "yue-\*" voices.
362+
language_code. E.g. when specifying ``"en-NZ"``, you
363+
will get supported ``"en-\*"`` voices; when specifying
364+
``"no"``, you will get supported ``"no-\*"`` (Norwegian)
365+
and ``"nb-\*"`` (Norwegian Bokmal) voices; specifying
366+
``"zh"`` will also get supported ``"cmn-\*"`` voices;
367+
specifying ``"zh-hk"`` will also get supported
368+
``"yue-\*"`` voices.
368369
369370
This corresponds to the ``language_code`` field
370371
on the ``request`` instance; if ``request`` is provided, this

google/cloud/texttospeech_v1/types/cloud_tts.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ class ListVoicesRequest(proto.Message):
6363
`BCP-47 <https://www.rfc-editor.org/rfc/bcp/bcp47.txt>`__
6464
language tag. If specified, the ListVoices call will only
6565
return voices that can be used to synthesize this
66-
language_code. E.g. when specifying "en-NZ", you will get
67-
supported "en-\*" voices; when specifying "no", you will get
68-
supported "no-\*" (Norwegian) and "nb-\*" (Norwegian Bokmal)
69-
voices; specifying "zh" will also get supported "cmn-\*"
70-
voices; specifying "zh-hk" will also get supported "yue-\*"
71-
voices.
66+
language_code. E.g. when specifying ``"en-NZ"``, you will
67+
get supported ``"en-\*"`` voices; when specifying ``"no"``,
68+
you will get supported ``"no-\*"`` (Norwegian) and
69+
``"nb-\*"`` (Norwegian Bokmal) voices; specifying ``"zh"``
70+
will also get supported ``"cmn-\*"`` voices; specifying
71+
``"zh-hk"`` will also get supported ``"yue-\*"`` voices.
7272
"""
7373

7474
language_code = proto.Field(proto.STRING, number=1,)

owlbot.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@
2424
default_version = "v1"
2525

2626
for library in s.get_staging_dirs(default_version):
27-
# Sphinx interprets `*` as emphasis
28-
s.replace(
29-
[library / "google/cloud/**/*client.py", library / "google/cloud/**/cloud_tts.py"],
30-
"((en)|(no)|(nb)|(cmn)|(yue))-\*",
31-
"\g<1>-\*",
32-
)
33-
3427
s.move(library, excludes=["setup.py", "docs/index.rst", "README.rst"])
3528

3629
s.remove_staging_dirs()

0 commit comments

Comments
 (0)