Skip to content

Update to typeshed version of gRPC stubs #1115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 5, 2025
Merged

Conversation

bkeryan
Copy link
Collaborator

@bkeryan bkeryan commented Apr 28, 2025

What does this Pull Request accomplish?

Replace grpc-stubs with types-grpcio.

Retrofit for differences between grpc-stubs and types-grpcio:

  • Typing-only types like CallFuture and CallIterator now have an underscore prefix.
  • The type stubs for abstract base classes like Call, Future, etc. now use ABCMeta, so mypy now knows they're abstract.

Why should this Pull Request be merged?

The grpc-stubs package is archived and will not be updated.

The abstract base class change was a fix for a bug that I reported.

What testing has been done?

Ran nps, mypy, pytest locally on a machine w/o InStudio or drivers.

Copy link

Test Results

    52 files  ±0      52 suites  ±0   1h 17m 37s ⏱️ +2s
   709 tests ±0     709 ✅ ±0      0 💤 ±0  0 ❌ ±0 
21 420 runs  ±0  20 344 ✅ ±0  1 076 💤 ±0  0 ❌ ±0 

Results for commit 964cb6d. ± Comparison against base commit 812e162.

@bkeryan bkeryan merged commit 65d348e into main May 5, 2025
17 checks passed
@bkeryan bkeryan deleted the users/bkeryan/types-grpcio branch May 5, 2025 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants