d5h-foss / grpc-interceptor

Simplified Python gRPC interceptors
MIT License
144 stars 22 forks source link

Type for the context in the AsyncExceptionToStatusInterceptor should use the type from grpc.aio #36

Closed jeffsawatzky closed 1 year ago

jeffsawatzky commented 1 year ago

This: https://github.com/d5h-foss/grpc-interceptor/blob/master/src/grpc_interceptor/exception_to_status.py#L183

should use the ServicerContext from grpc.aio like you do here: https://github.com/d5h-foss/grpc-interceptor/blob/master/src/grpc_interceptor/server.py#L88

See #37 for the fix.