When generating *_grpc.py from *.proto names declared in imported protos have wrong fully qualified names. For example if I have the following proto named A.proto:
As you can see, generation code does not take into account the fact that messages used when defining services can be imported from other protos. So, I've put together a fix that solves this problem.
When generating
*_grpc.py
from*.proto
names declared in imported protos have wrong fully qualified names. For example if I have the following proto namedA.proto
:And proto named
B.proto
:Then in generated A_grpc.py MethodA will be defined as follows:
However, MethodA should be defined like this:
As you can see, generation code does not take into account the fact that messages used when defining services can be imported from other protos. So, I've put together a fix that solves this problem.