mirror of https://github.com/grpc/grpc.git
[fix] updated invocation_metadata return type hint (#36894)
Updated the type hint for return type of grpc.aio.ServicerContext.invocation_metadata() to Optional[MetadataType] instead of Optional[Metadata].
MetadataType is already defined to be a Sequence[MetadatumType] and hence the type hint will reflect the sequence being returned, hence solving the [user's reported issue](https://github.com/grpc/grpc/issues/36613)
Closes #36894
COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36894 from sreenithi:fix-issues/36613 7d3a047309
PiperOrigin-RevId: 645276778
pull/37004/head
parent
b829df4d0d
commit
a98ac04fee
1 changed files with 1 additions and 2 deletions
Loading…
Reference in new issue