Skip to content

[grpcio-health-checking] Add async health service stubs - #16563

Open
Mogost wants to merge 1 commit into
python:mainfrom
Mogost:fix/grpc-health-aio
Open

Mogost wants to merge 1 commit into
python:mainfrom
Mogost:fix/grpc-health-aio

Conversation

@Mogost

@Mogost Mogost commented Oct 19, 2026

Copy link
Copy Markdown

from grpc_health.v1.health import aio currently has no stub. Add the async servicer and re-export, type the protobuf status values, and allow registration with an aio server.

Implementation:

Validated with the typeshed checks, including stubtest, and an async health service runtime smoke test.

Copilot AI balanced review requested due to automatic review settings October 19, 2026 13:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused stub changes match upstream behavior, with no unresolved correctness issues identified.

No open issues 🎉

What changed in this PR

Adds async health-service typing to typeshed’s grpcio-health-checking stubs.

Changes:

  • Adds async servicer signatures and the health.aio re-export.
  • Types protobuf status constants and values.
  • Accepts synchronous and async gRPC channels and servers.
File Description
stubs/​grpcio-health-checking/​grpc_health/​v1/​health.pyi Exports aio and updates status typing.
stubs/​grpcio-health-checking/​grpc_health/​v1/​health_pb2.pyi Types status constants, fields, and constructor input.
stubs/​grpcio-health-checking/​grpc_health/​v1/​health_pb2_grpc.pyi Types shared servicer methods and supports async channels and servers.
stubs/​grpcio-health-checking/​grpc_health/​v1/​_async.pyi Adds async health servicer stubs.

Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

scipy-stubs (https://github.com/scipy/scipy-stubs)
+ tests/misc/test_submodules_empty.pyi:3: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

This branch has not been deployed

No deployments
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