From fd0abf85921f441229f0b1b06a9ae4973d010057 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Fri, 5 Sep 2025 16:30:37 +0000 Subject: [PATCH] chore: remove redundant code --- google/cloud/bigquery_storage_v1/types/__init__.py | 1 - .../cloud/bigquery_storage_v1beta2/types/__init__.py | 1 - owlbot.py | 12 ------------ 3 files changed, 14 deletions(-) diff --git a/google/cloud/bigquery_storage_v1/types/__init__.py b/google/cloud/bigquery_storage_v1/types/__init__.py index ab9f210a..93a69b9b 100644 --- a/google/cloud/bigquery_storage_v1/types/__init__.py +++ b/google/cloud/bigquery_storage_v1/types/__init__.py @@ -68,7 +68,6 @@ "StorageError", "StreamStats", "ThrottleState", - "DataFormat", "ReadSession", "ReadStream", "WriteStream", diff --git a/google/cloud/bigquery_storage_v1beta2/types/__init__.py b/google/cloud/bigquery_storage_v1beta2/types/__init__.py index c3b74e54..98d72add 100644 --- a/google/cloud/bigquery_storage_v1beta2/types/__init__.py +++ b/google/cloud/bigquery_storage_v1beta2/types/__init__.py @@ -65,7 +65,6 @@ "StorageError", "StreamStats", "ThrottleState", - "DataFormat", "ReadSession", "ReadStream", "WriteStream", diff --git a/owlbot.py b/owlbot.py index 646c9df3..ac142d25 100644 --- a/owlbot.py +++ b/owlbot.py @@ -76,18 +76,6 @@ ), ) - # The DataFormat enum is not exposed in bigquery_storage_v1/types, add it there. - assert 1 == s.replace( - library / f"google/cloud/bigquery_storage_{library.name}*/types/__init__.py", - r"from \.stream import \(", - "\\g<0>\n DataFormat,", - ) - assert 1 == s.replace( - library / f"google/cloud/bigquery_storage_{library.name}*/types/__init__.py", - r"""["']ReadSession["']""", - '"DataFormat",\n \\g<0>', - ) - # Expose handwritten classes AppendRowsStream and ReadRowsStream here. assert 1 == s.replace( library / "google/cloud/bigquery_storage/__init__.py",