Hi,
Just curious about a change in the last release (1.24.9)
After this change, I'm finding it hard to set the status of services without a mypy error.
The code straight from the grpc examples https://github.com/grpc/grpc/blob/master/examples/python/xds/server.py:
# Mark all services as healthy.
health_pb2_grpc.add_HealthServicer_to_server(health_servicer, server)
for service in services:
health_servicer.set(service, health_pb2.HealthCheckResponse.SERVING)
Now causes a mypy error of:
Argument 2 to "set" of "HealthServicer" has incompatible type "ValueType"; expected "ServingStatus" [arg-type]
I think argument 2 should be a HealthCheckResponse.ServingStatus.ValueType ?
Defined in grpc_health-stubs/v1/health.pyi
This never used to cause a problem with health_pb2 stubs missing, but now they are there I am getting this error.
Or if I am wrong about that arguments type, how do I now set a servicer status without a mypy error?