Skip to content

Update stub for CodeGeneratorResponse protobuf message #4680

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

Conversation

henribru
Copy link
Contributor

Add Feature enum and supported_features field to CodeGeneratorResponse

These are related to the optional proto3 fields introduced in 3.12.0, see https://github.com/protocolbuffers/protobuf/releases/tag/v3.12.0 and https://github.com/protocolbuffers/protobuf/blob/214c77e1b76e63e512bd675d1c300c80438642b6/src/google/protobuf/compiler/plugin.proto#L112

Note that I've typed this differently than the stubs for other enums in google.protobuf. As pointed out in #2521, the current enum stubs are incorrect. I can however change it if you would prefer these stubs to be consistent with the existing ones and fixed together with those at a later point.

@henribru
Copy link
Contributor Author

flake8 seems to be failing on something entirely unrelated to my changes, for whatever reason

@hauntsaninja
Copy link
Collaborator

hauntsaninja commented Oct 17, 2020

Looks like one of our flake8 plugins got broken by Python 3.9: #4677 (comment)

@hauntsaninja
Copy link
Collaborator

If you rebase on master, CI should pass :-) (#4684, #4683)

@henribru henribru force-pushed the protobuf-code-generator-response-feature branch from 6172e22 to 6714f74 Compare October 18, 2020 11:47
@henribru
Copy link
Contributor Author

If you rebase on master, CI should pass :-) (#4684, #4683)

Yep, thanks!

@JelleZijlstra JelleZijlstra merged commit fd6bb39 into python:master Nov 1, 2020
@henribru henribru deleted the protobuf-code-generator-response-feature branch August 21, 2021 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants