Skip to content

Commit 2b0c979

Browse files
authored
chore: fix formatting for handwritten translate files (#15585)
Update handwritten files formatting to be compatible with ruff check.
1 parent aaea04c commit 2b0c979

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

packages/google-cloud-translate/google/cloud/translate_v2/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""Google Cloud Translation API wrapper."""
1616

17-
1817
from google.cloud.translate import __version__
1918
from google.cloud.translate_v2.client import Client
2019

packages/google-cloud-translate/google/cloud/translate_v2/client.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""Client for interacting with the Google Cloud Translation API."""
1616

17-
1817
import google.api_core.client_options
1918
from google.cloud.client import Client as BaseClient
2019

@@ -174,9 +173,9 @@ def detect_language(self, values):
174173
if len(detections[index]) == 1:
175174
detections[index] = detections[index][0]
176175
else:
177-
message = (
178-
"Expected a single detection per value, API " "returned %d"
179-
) % (len(detections[index]),)
176+
message = ("Expected a single detection per value, API returned %d") % (
177+
len(detections[index]),
178+
)
180179
raise ValueError(message, value, detections[index])
181180

182181
detections[index]["input"] = value

0 commit comments

Comments
 (0)