Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Aio] Correct the typing of input metadata #27768

Merged
merged 1 commit into from
Oct 19, 2021

Conversation

lidizheng
Copy link
Contributor

Related #27735.

Two types of RPC metadata are allowed today:

  1. The utility Metadata instance, which offers handy manipulation methods;
  2. The raw tuple over tuple metadata, like (("key1", "value1"), ("key2", "value2")).

This PR updates the type annotation to accept both.

@lidizheng lidizheng merged commit 2bc9618 into grpc:master Oct 19, 2021
@copybara-service copybara-service bot added the imported Specifies if the PR has been imported to the internal repository label Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
imported Specifies if the PR has been imported to the internal repository 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.

None yet

2 participants