From caa3eb583c6cb8b1db7aa498ad2569577c1ac072 Mon Sep 17 00:00:00 2001 From: ohmayr Date: Wed, 11 Feb 2026 23:03:30 +0000 Subject: [PATCH] chore: fix formatting for handwritten translate files --- .../google/cloud/translate_v2/__init__.py | 1 - .../google/cloud/translate_v2/client.py | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/google-cloud-translate/google/cloud/translate_v2/__init__.py b/packages/google-cloud-translate/google/cloud/translate_v2/__init__.py index 686456cd1bf7..a12e45f0ea18 100644 --- a/packages/google-cloud-translate/google/cloud/translate_v2/__init__.py +++ b/packages/google-cloud-translate/google/cloud/translate_v2/__init__.py @@ -14,7 +14,6 @@ """Google Cloud Translation API wrapper.""" - from google.cloud.translate import __version__ from google.cloud.translate_v2.client import Client diff --git a/packages/google-cloud-translate/google/cloud/translate_v2/client.py b/packages/google-cloud-translate/google/cloud/translate_v2/client.py index e329334dc222..383b983e7f78 100644 --- a/packages/google-cloud-translate/google/cloud/translate_v2/client.py +++ b/packages/google-cloud-translate/google/cloud/translate_v2/client.py @@ -14,7 +14,6 @@ """Client for interacting with the Google Cloud Translation API.""" - import google.api_core.client_options from google.cloud.client import Client as BaseClient @@ -174,9 +173,9 @@ def detect_language(self, values): if len(detections[index]) == 1: detections[index] = detections[index][0] else: - message = ( - "Expected a single detection per value, API " "returned %d" - ) % (len(detections[index]),) + message = ("Expected a single detection per value, API returned %d") % ( + len(detections[index]), + ) raise ValueError(message, value, detections[index]) detections[index]["input"] = value