File tree 7 files changed +133
-149
lines changed 7 files changed +133
-149
lines changed Original file line number Diff line number Diff line change 1
- # Error: is not present at runtime
2
- # =============================
3
- # Classes introduced in the typing library to provide interface structure.
4
- grpc.Behaviour
5
- grpc.CallFuture
6
- grpc.CallIterator
7
- grpc.CertificateChainPair
8
- grpc.Interceptor
9
- grpc.Metadata
10
- grpc.RequestDeserializer
11
- grpc.RequestSerializer
12
- grpc.ResponseDeserializer
13
- grpc.ResponseSerializer
14
- grpc.aio.DoneCallback
15
- grpc.aio.DoneCallbackType
16
- grpc.aio.EOFType
17
- grpc.aio.InterceptedCall
18
- grpc.aio.MetadataKey
19
- grpc.aio.MetadataType
20
- grpc.aio.MetadataValue
21
- grpc.aio.MetadatumType
22
- grpc.aio.RequestSerializer
23
- grpc.aio.ResponseDeserializer
24
- grpc_health.v1.health.SendResponseCallback
25
- grpc_reflection.v1alpha.reflection.AnyServer
26
- grpc_reflection.v1alpha.reflection.AnyServicerContext
27
-
28
1
# Error: is not present at runtime
29
2
# =============================
30
3
# Error class attributes that aren't defined.
Original file line number Diff line number Diff line change 18
18
# Metadata
19
19
async def metadata () -> None :
20
20
metadata = await typing .cast (grpc .aio .Call , None ).initial_metadata ()
21
- assert_type (metadata ["foo" ], grpc .aio .MetadataValue )
21
+ assert_type (metadata ["foo" ], grpc .aio ._MetadataValue )
22
22
for k in metadata :
23
23
assert_type (k , str )
24
24
25
25
for k , v in metadata .items ():
26
26
assert_type (k , str )
27
- assert_type (v , grpc .aio .MetadataValue )
27
+ assert_type (v , grpc .aio ._MetadataValue )
Original file line number Diff line number Diff line change 41
41
assert_type (call_details .timeout , typing .Optional [float ])
42
42
43
43
# Call iterator
44
- call_iter : grpc .CallIterator [str ] = typing .cast (typing .Any , None )
44
+ call_iter : grpc ._CallIterator [str ] = typing .cast (typing .Any , None )
45
45
for call in call_iter :
46
46
assert_type (call , str )
You can’t perform that action at this time.
0 commit comments