Skip to content

[Aio] Correct type annotation of grpc.aio.ServicerContext.abort#24946

Merged
lidizheng merged 1 commit intogrpc:masterfrom
lidizheng:abort-annotation
Dec 9, 2020
Merged

[Aio] Correct type annotation of grpc.aio.ServicerContext.abort#24946
lidizheng merged 1 commit intogrpc:masterfrom
lidizheng:abort-annotation

Conversation

@lidizheng
Copy link
Copy Markdown
Contributor

@lidizheng lidizheng commented Dec 9, 2020

Related #24942

grpc.aio.ServicerContext.abort accepts 3 arguments, code, details, trailing metadata. And only the first argument code is positional without default value. This is how grpc.aio.ServicerContext is implemented in Cython and tested in unit tests. But I overlooked this issue when I created the abstract class.

@lidizheng lidizheng added lang/Python release notes: yes Indicates if PR needs to be in release notes labels Dec 9, 2020
@lidizheng lidizheng marked this pull request as ready for review December 9, 2020 19:24
@lidizheng lidizheng requested a review from gnossen December 9, 2020 19:24
@lidizheng
Copy link
Copy Markdown
Contributor Author

Known Failure: #24947

@lidizheng lidizheng merged commit 0dd3f7e into grpc:master Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang/Python release notes: yes Indicates if PR needs to be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants