Skip to content

Commit

Permalink
Preserve fixed enum references during synth. (#8797)
Browse files Browse the repository at this point in the history
See PR #8779.

Supersedes PR #8794.
  • Loading branch information
tseaver authored Jul 26, 2019
1 parent 7a9479c commit ce1d889
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/google-cloud-language/synth.metadata
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"updateTime": "2019-07-03T12:30:47.460808Z",
"updateTime": "2019-07-26T16:41:45.092048Z",
"sources": [
{
"generator": {
"name": "artman",
"version": "0.29.3",
"dockerImage": "googleapis/artman@sha256:8900f94a81adaab0238965aa8a7b3648791f4f3a95ee65adc6a56cfcc3753101"
"version": "0.31.0",
"dockerImage": "googleapis/artman@sha256:9aed6bbde54e26d2fcde7aa86d9f64c0278f741e58808c46573e488cbf6098f0"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "69916b6ffbb7717fa009033351777d0c9909fb79",
"internalRef": "256241904"
"sha": "0906a9e74f4db789aee7fc5016ab828d3dd24f03",
"internalRef": "260061471"
}
},
{
Expand Down
6 changes: 6 additions & 0 deletions packages/google-cloud-language/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,10 @@
templated_files = common.py_library(unit_cov_level=97, cov_level=100)
s.move(templated_files)

s.replace(
f"google/cloud/**/gapic/language_service_client.py",
r"types\.EncodingType",
"enums.EncodingType",
)

s.shell.run(["nox", "-s", "blacken"], hide_output=False)

0 comments on commit ce1d889

Please sign in to comment.