Comments (9)
I've reached out in the typeshed repo. Let's see if it's something they'd consider.
from grpc-stubs.
Hi snallapa, thanks for your interest! I had originally thought I would try to submit back to typeshed, but IIRC I read somewhere that they weren't adding more third party stuff any more and that stub packages like this were the way forward. I can't remember where I read that though, and my memory may not serve me correctly as it was some time ago now.
I'd be happy to try to submit if there was a chance it would be accepted.
from grpc-stubs.
I think they are taking PR for third party libraries now! I actually just added types for a library python/typeshed#3845 and they are usually pretty quick to respond. Hopefully, I did not misread any of their information or misunderstand something but lmk if I did. It would be great to have this included in typeshed
from grpc-stubs.
That's good to know! One of my concerns is that there doesn't appear to be any testing of the stubs in typeshed. The typed-django folks reached out to me to suggest I use their mypy testing plugin and it worked really well, I intended to use it more and more as I add updates. I'm slightly worried moving this to typeshed would mean that I have to remove that testing, which would make updating the stubs riskier. What are your thoughts?
from grpc-stubs.
That is not something I really considered! I think it might be worth adding an issue on typeshed and talking to them about it as they can probably add their thoughts or maybe already have a solution?
from grpc-stubs.
Interested in being a part of this too. It looks like typeshed would expose these stubs to a lot more users!
from grpc-stubs.
I think itβd be worthwhile moving this to Typeshed Stubs , unless Google is willing to integrate it into the official Python grpc packages.
from grpc-stubs.
so that it is automatically included in mypy
Note that typeshed stubs for third party packages are not automatically included with mypy (at least, not in the last couple years). However, it is true that typeshed stubs are relatively more discoverable.
from grpc-stubs.
I've opened the PR: python/typeshed#11204
from grpc-stubs.
Related Issues (20)
- Consider using pytest-mypy-plugins HOT 13
- Publish new version HOT 1
- Distribution doesn't include py.typed files. HOT 2
- 1.24 updates
- No stubs for `aio` HOT 9
- No stubs for client stubs? HOT 5
- can mypy be optional dependency? HOT 2
- Typing of HealthServicer.set HOT 6
- Missing grpc StatusCode HOT 1
- The partial typing of the aio.pyi module causes an error HOT 4
- pypi version 1.53.0.1 HOT 1
- enable_server_reflection should allow aio server instances
- The object returned from `UnaryStreamMultiCallable` and `StreamStreamMultiCallable` should also be a `Future` HOT 2
- Wrong type hints for continuation in streaming interceptors HOT 1
- intercept_stream_stream in grpc.aio incorrectly marked as a coroutine HOT 2
- `ServerInterceptor.intercept_service` return type doesn't match continuation return type HOT 2
- Type hints for abstract base classes are missing `abc.ABC`
- `CallIterator` is missing `__next__` method
- Argument `grace` of Server.stop() should be Optional[float] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grpc-stubs.