Hey, thanks for making this stub. Has been super useful for me!
I was looking into what type to use for the argument grace of Server.stop() when creating a delegate and to figure it out I took a peek at the gRPC source code for python. The only place that this argument is used seems to be here. It is passed to threading.Event.wait() which according to the docs takes an optional floating point number.
So I believe the correct type for the argument should be typing.Optional[float].
Hey, thanks for making this stub. Has been super useful for me!
I was looking into what type to use for the argument
grace
ofServer.stop()
when creating a delegate and to figure it out I took a peek at the gRPC source code for python. The only place that this argument is used seems to be here. It is passed tothreading.Event.wait()
which according to the docs takes an optional floating point number.So I believe the correct type for the argument should be
typing.Optional[float]
.Cheers!