shabbyrobe / grpc-stubs

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

server() expects list of ServerInterceptor #23

Closed jyggen closed 2 years ago

jyggen commented 2 years ago

The current typehint wants a list of various client interceptors, when in reality it should be a list of ServerInterceptor as per the docs:

interceptors: An optional list of ServerInterceptor objects that observe and optionally manipulate the incoming RPCs before handing them over to handlers. The interceptors are given control in the order they are specified. This is an EXPERIMENTAL API.

shabbyrobe commented 2 years ago

Thanks for the fix!