Skip to content

Add grpc.experimental.gevent stubs#15839

Open
wangting0128 wants to merge 1 commit into
python:mainfrom
wangting0128:fix-grpcio-experimental-gevent
Open

Add grpc.experimental.gevent stubs#15839
wangting0128 wants to merge 1 commit into
python:mainfrom
wangting0128:fix-grpcio-experimental-gevent

Conversation

@wangting0128
Copy link
Copy Markdown

Changes

Add minimal stubs for grpc.experimental.gevent, which exists in the grpcio runtime package but is currently missing from the partial grpcio stubs.

This adds:

  • stubs/grpcio/grpc/experimental/__init__.pyi
  • stubs/grpcio/grpc/experimental/gevent.pyi
  • a regression test case for importing grpc.experimental.gevent and calling init_gevent()

Follow-up to #15833.

Testing

python tests/runtests.py stubs/grpcio

Result:

--- TEST SUMMARY: All tests passed! ---

pre-commit Success
Check structure: Success
Pyright: Success
mypy: Success
stubtest: Skipped
Pyright regression tests: Success
mypy regression test: Success

@github-actions
Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

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.

1 participant