Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyrightconfig.stricter.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"stubs/geopandas",
"stubs/google-cloud-ndb",
"stubs/grpcio/grpc/__init__.pyi",
"stubs/grpcio/grpc_status/rpc_status.pyi",
"stubs/hdbcli/hdbcli/dbapi.pyi",
"stubs/html5lib",
"stubs/httplib2",
Expand Down
8 changes: 0 additions & 8 deletions stubs/grpcio/@tests/test_cases/check_status.py

This file was deleted.

10 changes: 2 additions & 8 deletions stubs/grpcio/grpc_status/rpc_status.pyi
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
from typing import Any

import grpc

# XXX: don't yet know how to add a stub for google.rpc.status_pb2.Status
# without affecting other stuff; may need to make a stub-only package for
# google.rpc as well.

# Returns a google.rpc.status.Status message corresponding to a given grpc.Call.
def from_call(call: grpc.Call) -> Any: ...
def from_call(call: grpc.Call): ...

# Convert a google.rpc.status.Status message to grpc.Status.
def to_status(status: Any) -> grpc.Status: ...
def to_status(status) -> grpc.Status: ...