googleapis / googleapis/google-cloud-python

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

Offen
#15,901 3 Kommentare 0 Reaktionen 1 zugewiesene Person Zugewiesen an @harshachinta Auf GitHub ansehen
api: spanner
Vorherrschende Sprache
Python
Sterne
5.4k
Forks
1.8k
Ø Merge
3 T. 4 Std.
Gemergte PRs (30 T.)
122

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.