Extract grpcio plugins (#13896)

This commit is contained in:
Avasam
2025-05-05 16:48:46 +02:00
committed by GitHub
parent 5991c939f1
commit a43e0a4c02
31 changed files with 16 additions and 13 deletions
+3
View File
@@ -0,0 +1,3 @@
version = "1.*"
upstream_repository = "https://github.com/grpc/grpc"
requires = ["types-grpcio"]
@@ -0,0 +1,5 @@
from _typeshed import Incomplete
async def from_call(call) -> Incomplete | None: ...
__all__ = ["from_call"]
@@ -0,0 +1,11 @@
import grpc
from . import _async as aio
# Returns a google.rpc.status.Status message corresponding to a given grpc.Call.
def from_call(call: grpc.Call): ...
# Convert a google.rpc.status.Status message to grpc.Status.
def to_status(status) -> grpc.Status: ...
__all__ = ["from_call", "to_status", "aio"]