8000 chore: fix docstring replace (#38) · googleapis/google-cloud-python@c4befaf · GitHub
[go: up one dir, main page]

Skip to content

Commit c4befaf

Browse files
chore: fix docstring replace (#38)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/1deda303-9d5e-4b48-a4b5-1bc8f66830f9/targets - [ ] To automatically regenerate this PR, check this box.
1 parent 86727a5 commit c4befaf

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

google-cloud-speech/google/cloud/speech_v1p1beta1/proto/resource_pb2.py

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

google-cloud-speech/synth.metadata

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/python-speech.git",
7-
"sha": "0d4d2c20b131269e532436da0bf6cdabc7d398e8"
7+
"sha": "e0fc3c74178ba36a3a054431b31afe8a34289c0c"
88
}
99
},
1010
{

google-cloud-speech/synth.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,21 @@
5555
r"from google.cloud.speech_\1.gapic import speech_client as speech_\1",
5656
)
5757

58+
59+
# Fix bad docstring
60+
s.replace(
61+
"google/**/resource_pb2.py",
62+
"""``\\\\ ``e\.g\.``\\\\
63+
\$MONTH\\\\ ``\.""",
64+
"""``\ ``e.g.``\$MONTH\ ``."""
65+
)
66+
67+
s.replace(
68+
"google/**/resource_pb2.py",
69+
"""\(e\.g\. ``\\\\ \{my-
70+
months\}`\)\.""",
71+
"""(e.g. ``\ {my-months}``)."""
72+
)
5873
# ----------------------------------------------------------------------------
5974
# Add templated files
6075
# ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)
0