googleapis / googleapis/google-cloud-python

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

Abierto
#15,901 3 comentarios 0 reacciones 1 asignado Asignado a @harshachinta Ver en GitHub
api: spanner
Lenguaje dominante
Python
Estrellas
5.4k
Forks
1.8k
Merge medio
3 d 4 h
PR fusionados (30 d)
122

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.