Skip to content

Commit 23f94ff

Browse files
authored
Remove Any in stubs/grpcio/grpc_status/rpc_status.pyi (#13895)
1 parent 0dedc39 commit 23f94ff

File tree

3 files changed

+3
-16
lines changed

3 files changed

+3
-16
lines changed

pyrightconfig.stricter.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"stubs/geopandas",
4646
"stubs/google-cloud-ndb",
4747
"stubs/grpcio/grpc/__init__.pyi",
48+
"stubs/grpcio/grpc_status/rpc_status.pyi",
4849
"stubs/hdbcli/hdbcli/dbapi.pyi",
4950
"stubs/html5lib",
5051
"stubs/httplib2",

stubs/grpcio/@tests/test_cases/check_status.py

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
from typing import Any
2-
31
import grpc
42

5-
# XXX: don't yet know how to add a stub for google.rpc.status_pb2.Status
6-
# without affecting other stuff; may need to make a stub-only package for
7-
# google.rpc as well.
8-
93
# Returns a google.rpc.status.Status message corresponding to a given grpc.Call.
10-
def from_call(call: grpc.Call) -> Any: ...
4+
def from_call(call: grpc.Call): ...
115

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

0 commit comments

Comments
 (0)