Skip to content

Commit 6f8ab6e

Browse files
committed
fix(generator): add type ignore to client_utils import in compat template, and update goldens
1 parent fd4a4dd commit 6f8ab6e

9 files changed

Lines changed: 9 additions & 9 deletions

File tree

  • packages/gapic-generator

packages/gapic-generator/gapic/templates/%namespace/%name_%version/%sub/_compat.py.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ from typing import Optional, Callable, Tuple, Union
55
from google.auth.exceptions import MutualTLSChannelError
66

77
try:
8-
from google.api_core.gapic_v1.client_utils import (
8+
from google.api_core.gapic_v1.client_utils import ( # type: ignore
99
get_default_mtls_endpoint,
1010
get_api_endpoint,
1111
get_universe_domain,

packages/gapic-generator/tests/integration/goldens/asset/google/cloud/asset_v1/_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from google.auth.exceptions import MutualTLSChannelError
1818

1919
try:
20-
from google.api_core.gapic_v1.client_utils import (
20+
from google.api_core.gapic_v1.client_utils import ( # type: ignore
2121
get_default_mtls_endpoint,
2222
get_api_endpoint,
2323
get_universe_domain,

packages/gapic-generator/tests/integration/goldens/credentials/google/iam/credentials_v1/_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from google.auth.exceptions import MutualTLSChannelError
1818

1919
try:
20-
from google.api_core.gapic_v1.client_utils import (
20+
from google.api_core.gapic_v1.client_utils import ( # type: ignore
2121
get_default_mtls_endpoint,
2222
get_api_endpoint,
2323
get_universe_domain,

packages/gapic-generator/tests/integration/goldens/eventarc/google/cloud/eventarc_v1/_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from google.auth.exceptions import MutualTLSChannelError
1818

1919
try:
20-
from google.api_core.gapic_v1.client_utils import (
20+
from google.api_core.gapic_v1.client_utils import ( # type: ignore
2121
get_default_mtls_endpoint,
2222
get_api_endpoint,
2323
get_universe_domain,

packages/gapic-generator/tests/integration/goldens/logging/google/cloud/logging_v2/_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from google.auth.exceptions import MutualTLSChannelError
1818

1919
try:
20-
from google.api_core.gapic_v1.client_utils import (
20+
from google.api_core.gapic_v1.client_utils import ( # type: ignore
2121
get_default_mtls_endpoint,
2222
get_api_endpoint,
2323
get_universe_domain,

packages/gapic-generator/tests/integration/goldens/logging_internal/google/cloud/logging_v2/_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from google.auth.exceptions import MutualTLSChannelError
1818

1919
try:
20-
from google.api_core.gapic_v1.client_utils import (
20+
from google.api_core.gapic_v1.client_utils import ( # type: ignore
2121
get_default_mtls_endpoint,
2222
get_api_endpoint,
2323
get_universe_domain,

packages/gapic-generator/tests/integration/goldens/redis/google/cloud/redis_v1/_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from google.auth.exceptions import MutualTLSChannelError
1818

1919
try:
20-
from google.api_core.gapic_v1.client_utils import (
20+
from google.api_core.gapic_v1.client_utils import ( # type: ignore
2121
get_default_mtls_endpoint,
2222
get_api_endpoint,
2323
get_universe_domain,

packages/gapic-generator/tests/integration/goldens/redis_selective/google/cloud/redis_v1/_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from google.auth.exceptions import MutualTLSChannelError
1818

1919
try:
20-
from google.api_core.gapic_v1.client_utils import (
20+
from google.api_core.gapic_v1.client_utils import ( # type: ignore
2121
get_default_mtls_endpoint,
2222
get_api_endpoint,
2323
get_universe_domain,

packages/gapic-generator/tests/integration/goldens/storagebatchoperations/google/cloud/storagebatchoperations_v1/_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from google.auth.exceptions import MutualTLSChannelError
1818

1919
try:
20-
from google.api_core.gapic_v1.client_utils import (
20+
from google.api_core.gapic_v1.client_utils import ( # type: ignore
2121
get_default_mtls_endpoint,
2222
get_api_endpoint,
2323
get_universe_domain,

0 commit comments

Comments
 (0)