mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-14 03:51:06 +08:00
Extract grpcio plugins (#13896)
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user