Skip to content

Commit 3d6e68e

Browse files
committed
chore: Add mypy ignore for union-attr error
1 parent 9dece54 commit 3d6e68e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

google/cloud/datastore_v1/services/datastore/async_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,7 +1319,7 @@ async def list_operations(
13191319
# Certain fields should be provided within the metadata header;
13201320
# add these here.
13211321
metadata = tuple(metadata) + (
1322-
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
1322+
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), # type: ignore[union-attr] # TODO: https://github.com/googleapis/python-datastore/issues/649 - Fix type hint issue
13231323
)
13241324

13251325
# Validate the universe domain.
@@ -1374,7 +1374,7 @@ async def get_operation(
13741374
# Certain fields should be provided within the metadata header;
13751375
# add these here.
13761376
metadata = tuple(metadata) + (
1377-
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
1377+
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), # type: ignore[union-attr] # TODO: https://github.com/googleapis/python-datastore/issues/649 - Fix type hint issue
13781378
)
13791379

13801380
# Validate the universe domain.
@@ -1433,7 +1433,7 @@ async def delete_operation(
14331433
# Certain fields should be provided within the metadata header;
14341434
# add these here.
14351435
metadata = tuple(metadata) + (
1436-
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
1436+
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), # type: ignore[union-attr] # TODO: https://github.com/googleapis/python-datastore/issues/649 - Fix type hint issue
14371437
)
14381438

14391439
# Validate the universe domain.
@@ -1488,7 +1488,7 @@ async def cancel_operation(
14881488
# Certain fields should be provided within the metadata header;
14891489
# add these here.
14901490
metadata = tuple(metadata) + (
1491-
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
1491+
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), # type: ignore[union-attr] # TODO: https://github.com/googleapis/python-datastore/issues/649 - Fix type hint issue
14921492
)
14931493

14941494
# Validate the universe domain.

google/cloud/datastore_v1/services/datastore/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1719,7 +1719,7 @@ def list_operations(
17191719
# Certain fields should be provided within the metadata header;
17201720
# add these here.
17211721
metadata = tuple(metadata) + (
1722-
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
1722+
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), # type: ignore[union-attr] # TODO: https://github.com/googleapis/python-datastore/issues/649 - Fix type hint issue
17231723
)
17241724

17251725
# Validate the universe domain.
@@ -1778,7 +1778,7 @@ def get_operation(
17781778
# Certain fields should be provided within the metadata header;
17791779
# add these here.
17801780
metadata = tuple(metadata) + (
1781-
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
1781+
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), # type: ignore[union-attr] # TODO: https://github.com/googleapis/python-datastore/issues/649 - Fix type hint issue
17821782
)
17831783

17841784
# Validate the universe domain.
@@ -1841,7 +1841,7 @@ def delete_operation(
18411841
# Certain fields should be provided within the metadata header;
18421842
# add these here.
18431843
metadata = tuple(metadata) + (
1844-
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
1844+
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), # type: ignore[union-attr] # TODO: https://github.com/googleapis/python-datastore/issues/649 - Fix type hint issue
18451845
)
18461846

18471847
# Validate the universe domain.
@@ -1896,7 +1896,7 @@ def cancel_operation(
18961896
# Certain fields should be provided within the metadata header;
18971897
# add these here.
18981898
metadata = tuple(metadata) + (
1899-
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
1899+
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), # type: ignore[union-attr] # TODO: https://github.com/googleapis/python-datastore/issues/649 - Fix type hint issue
19001900
)
19011901

19021902
# Validate the universe domain.

0 commit comments

Comments
 (0)