googleapis / googleapis/google-cloud-python

testing/mock_spanner: failure with TypeError: unsupported operand type(s) for |: 'MessageMeta' and 'MessageMeta'

Open
#15,901 3 comments 0 reactions 1 assignee Assigned to @harshachinta View on GitHub
api: spanner
Dominant language
Python
Stars
5.4k
Forks
1.8k
Avg merge
3d 4h
Merged PRs (30d)
122

Description

After PR googleapis/python-spanner#1271 we get this error
```shell
tests/mockserver_tests/mock_server_test_base.py:19: in
from google.cloud.spanner_v1.testing.mock_spanner import (
google/cloud/spanner_v1/testing/mock_spanner.py:84: in
class SpannerServicer(spanner_grpc.SpannerServicer):
google/cloud/spanner_v1/testing/mock_spanner.py:190: in SpannerServicer
self, request: ExecuteSqlRequest | ExecuteBatchDmlRequest
E TypeError: unsupported operand type(s) for |: 'MessageMeta' and 'MessageMeta'
```

Perhaps the code was tested only for Python 3.10 and not Python 3.8?

Kindly cc-ing @olavloite

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.