shabbyrobe / grpc-stubs

gRPC typing stubs for Python
MIT License
35 stars 21 forks source link

Fix return type from intercept_service #43

Closed mahlberg closed 11 months ago

mahlberg commented 1 year ago

Description of change

Updating return type for ServerInterceptor.intercept_service, according to the gRPC documentation this can also return None. This is the documentation for the return type:

An RpcMethodHandler with which the RPC may be serviced if the interceptor chooses to service this RPC, or None otherwise.

Minimum Reproducible Example

This is a one-line change and I believe the provided typing test is sufficient.

Checklist:

shabbyrobe commented 11 months ago

Thank you!