Skip to content

Commit 4cfdccb

Browse files
chore: Update gapic-generator-python to v1.18.5 (#1015)
* chore: Update gapic-generator-python to v1.18.5 PiperOrigin-RevId: 661268868 Source-Link: googleapis/googleapis@f7d214c Source-Link: googleapis/googleapis-gen@79a8411 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzlhODQxMWJiZGIyNWE5ODNmYTNhYWU4YzBlMTQzMjdkZjEyOWY5NCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent e72fa77 commit 4cfdccb

File tree

9 files changed

+401
-321
lines changed

9 files changed

+401
-321
lines changed

packages/google-cloud-bigtable/google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/async_client.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# limitations under the License.
1515
#
1616
from collections import OrderedDict
17-
import functools
1817
import re
1918
from typing import (
2019
Dict,
@@ -218,10 +217,7 @@ def universe_domain(self) -> str:
218217
"""
219218
return self._client._universe_domain
220219

221-
get_transport_class = functools.partial(
222-
type(BigtableInstanceAdminClient).get_transport_class,
223-
type(BigtableInstanceAdminClient),
224-
)
220+
get_transport_class = BigtableInstanceAdminClient.get_transport_class
225221

226222
def __init__(
227223
self,

packages/google-cloud-bigtable/google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ def __init__(
790790
Type[BigtableInstanceAdminTransport],
791791
Callable[..., BigtableInstanceAdminTransport],
792792
] = (
793-
type(self).get_transport_class(transport)
793+
BigtableInstanceAdminClient.get_transport_class(transport)
794794
if isinstance(transport, str) or transport is None
795795
else cast(Callable[..., BigtableInstanceAdminTransport], transport)
796796
)

packages/google-cloud-bigtable/google/cloud/bigtable_admin_v2/services/bigtable_table_admin/async_client.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# limitations under the License.
1515
#
1616
from collections import OrderedDict
17-
import functools
1817
import re
1918
from typing import (
2019
Dict,
@@ -218,10 +217,7 @@ def universe_domain(self) -> str:
218217
"""
219218
return self._client._universe_domain
220219

221-
get_transport_class = functools.partial(
222-
type(BigtableTableAdminClient).get_transport_class,
223-
type(BigtableTableAdminClient),
224-
)
220+
get_transport_class = BigtableTableAdminClient.get_transport_class
225221

226222
def __init__(
227223
self,

packages/google-cloud-bigtable/google/cloud/bigtable_admin_v2/services/bigtable_table_admin/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ def __init__(
814814
Type[BigtableTableAdminTransport],
815815
Callable[..., BigtableTableAdminTransport],
816816
] = (
817-
type(self).get_transport_class(transport)
817+
BigtableTableAdminClient.get_transport_class(transport)
818818
if isinstance(transport, str) or transport is None
819819
else cast(Callable[..., BigtableTableAdminTransport], transport)
820820
)

packages/google-cloud-bigtable/google/cloud/bigtable_v2/services/bigtable/async_client.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# limitations under the License.
1515
#
1616
from collections import OrderedDict
17-
import functools
1817
import re
1918
from typing import (
2019
Dict,
@@ -188,9 +187,7 @@ def universe_domain(self) -> str:
188187
"""
189188
return self._client._universe_domain
190189

191-
get_transport_class = functools.partial(
192-
type(BigtableClient).get_transport_class, type(BigtableClient)
193-
)
190+
get_transport_class = BigtableClient.get_transport_class
194191

195192
def __init__(
196193
self,

packages/google-cloud-bigtable/google/cloud/bigtable_v2/services/bigtable/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ def __init__(
701701
transport_init: Union[
702702
Type[BigtableTransport], Callable[..., BigtableTransport]
703703
] = (
704-
type(self).get_transport_class(transport)
704+
BigtableClient.get_transport_class(transport)
705705
if isinstance(transport, str) or transport is None
706706
else cast(Callable[..., BigtableTransport], transport)
707707
)

0 commit comments

Comments
 (0)