On Sat, Mar 10, 2018 at 11:07 AM, Sword Chen <[email protected]> wrote:

> I am Sword Chen, a postgraduate student at Mid Sweden University.
>

Pleased to meet you!

I have used the gPRC for some time.
>

Cool! How long? With what programming languages?

So I would love to contribute to the project as part of GSoC. I have seen
> the given ideas, and I am quite interested in the "Support static
> type-checking of both gRPC Python" , but I can't find the relative open
> issue for this idea.  so I did some prework and I put them here.
>
> I have tried the Type Checking Tool Mypy, when I tested some file using
> the grpc module and I got this error " Cannot find module named 'grpc' "
> Then I went through with the Mypy document, Mypy can't do static
> type-checking of both gRPC Python itself and of the code that uses gRPC
> because Mypy can't find a stub for a grpc library module. and here is the
> information about Creating Stubs For Python Modules https://github.com/
> python/mypy/wiki/Creating-Stubs-For-Python-Modules. So what I need to do
> is to create the stubs for the grpc to help Mypy to detect the code. Am I
> working in the right direction now? It would be really helpful if someone
> can give me some guidance, so I can have some confidence to go on.
>

This sounds like it's going in the right direction - something that I think
we sort of expect is that there will be a certain incrementality to static
typing of gRPC Python, and having to add stubs describing the types of
lower-level systems so that the upper-level systems can have type
annotations added and checked is not a surprise. mypy and pytype are both
young enough, and gRPC Python is weird enough, that it is certainly not our
expectation that we can just throw either tool at our codebase and it will
figure types out without any further assistance. :-)

Thanks for reaching out!
-Nathaniel

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CAEOYnASN%2BOYnJbmUTTq9ipFm7BxPzoPUrM8dpKbi0URXtgkUDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to