Skip to content

Update to typeshed version of gRPC stubs#1115

Merged
bkeryan merged 3 commits intomainfrom
users/bkeryan/types-grpcio
May 5, 2025
Merged

Update to typeshed version of gRPC stubs#1115
bkeryan merged 3 commits intomainfrom
users/bkeryan/types-grpcio

Conversation

@bkeryan
Copy link
Copy Markdown
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.

@github-actions
Copy link
Copy Markdown
Contributor

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
bkeryan added a commit that referenced this pull request Jun 23, 2025
* Upgrade to typeshed gRPC stubs

* Update poetry.lock

* Retrofit for types-grpcio changes

(cherry picked from commit 65d348e)
bkeryan added a commit that referenced this pull request Jun 24, 2025
* Upgrade to typeshed gRPC stubs

* Update poetry.lock

* Retrofit for types-grpcio changes

(cherry picked from commit 65d348e)
bkeryan added a commit that referenced this pull request Jun 24, 2025
Update to typeshed version of gRPC stubs (#1115)

* Upgrade to typeshed gRPC stubs

* Update poetry.lock

* Retrofit for types-grpcio changes

(cherry picked from commit 65d348e)
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