Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Commit

Permalink
fix: add retries import
Browse files Browse the repository at this point in the history
  • Loading branch information
busunkim96 committed Jul 28, 2020
1 parent b86cb3a commit ac46145
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,24 @@
"\n\g<0>",
)

# TODO(busunkim): Remove once https://github.com/googleapis/gapic-generator-python/pull/555 is merged
s.replace(
"google/**/base.py",
"""from google\.api_core import gapic_v1\s+# type: ignore""",
"""from google.api_core import gapic_v1 # type: ignore
from google.api_core import retry as retries # type: ignore""",
)

# fix bad indentation
s.replace(
"google/**/*service.py",
"""(\s+)settings resource.
\s+If empty all mutable fields will be updated.""",
"""\g<1>settings resource.
\g<1>If empty all mutable fields will be updated.""",
)


# ----------------------------------------------------------------------------
# Add templated files
# ----------------------------------------------------------------------------
Expand Down

0 comments on commit ac46145

Please sign in to comment.