From 3d6e68ee98d74a79a92f6ec670abd935cb616338 Mon Sep 17 00:00:00 2001 From: chalmer lowe Date: Fri, 31 Oct 2025 09:03:40 -0400 Subject: [PATCH] chore: Add mypy ignore for union-attr error --- .../cloud/datastore_v1/services/datastore/async_client.py | 8 ++++---- google/cloud/datastore_v1/services/datastore/client.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/google/cloud/datastore_v1/services/datastore/async_client.py b/google/cloud/datastore_v1/services/datastore/async_client.py index bf2dad03..f93936fd 100644 --- a/google/cloud/datastore_v1/services/datastore/async_client.py +++ b/google/cloud/datastore_v1/services/datastore/async_client.py @@ -1319,7 +1319,7 @@ async def list_operations( # Certain fields should be provided within the metadata header; # add these here. metadata = tuple(metadata) + ( - gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + 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 ) # Validate the universe domain. @@ -1374,7 +1374,7 @@ async def get_operation( # Certain fields should be provided within the metadata header; # add these here. metadata = tuple(metadata) + ( - gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + 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 ) # Validate the universe domain. @@ -1433,7 +1433,7 @@ async def delete_operation( # Certain fields should be provided within the metadata header; # add these here. metadata = tuple(metadata) + ( - gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + 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 ) # Validate the universe domain. @@ -1488,7 +1488,7 @@ async def cancel_operation( # Certain fields should be provided within the metadata header; # add these here. metadata = tuple(metadata) + ( - gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + 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 ) # Validate the universe domain. diff --git a/google/cloud/datastore_v1/services/datastore/client.py b/google/cloud/datastore_v1/services/datastore/client.py index f6c1f998..fbd77ced 100644 --- a/google/cloud/datastore_v1/services/datastore/client.py +++ b/google/cloud/datastore_v1/services/datastore/client.py @@ -1719,7 +1719,7 @@ def list_operations( # Certain fields should be provided within the metadata header; # add these here. metadata = tuple(metadata) + ( - gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + 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 ) # Validate the universe domain. @@ -1778,7 +1778,7 @@ def get_operation( # Certain fields should be provided within the metadata header; # add these here. metadata = tuple(metadata) + ( - gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + 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 ) # Validate the universe domain. @@ -1841,7 +1841,7 @@ def delete_operation( # Certain fields should be provided within the metadata header; # add these here. metadata = tuple(metadata) + ( - gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + 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 ) # Validate the universe domain. @@ -1896,7 +1896,7 @@ def cancel_operation( # Certain fields should be provided within the metadata header; # add these here. metadata = tuple(metadata) + ( - gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + 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 ) # Validate the universe domain.