Skip to content

Regenerate google.protobuf stubs using mypy-protobuf #4341

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

Closed
wants to merge 1 commit into from

Conversation

nipunn1313
Copy link
Contributor

This regenerates the stubs using the latest mypy-protobuf source - fixing a variety of issues - most notably the autogeneration of enums to more closely match google's autogenerated python code.

Fixes #2521

@nipunn1313
Copy link
Contributor Author

Note that these stubs may not be backward compatible with the old stubs - particularly for enums - where the old stubs were incorrectly conflating the EnumValue (int) with the EnumTypeWrapper - preventing inheritance from the base class EnumTypeWrapper

@srittau
Copy link
Collaborator

srittau commented Aug 8, 2020

The build fails du to various reasons and by now the stubs don't apply cleanly anymore. These problem would need to be fixed before we can consider applying this PR. As it stands, it's also hard to see the differences to the manually generated stubs.

@srittau
Copy link
Collaborator

srittau commented Sep 17, 2020

Closing per my last comment.

@srittau srittau closed this Sep 17, 2020
@nipunn1313 nipunn1313 deleted the mypy-protobuf-stubs branch July 10, 2021 23:28
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.

Incorrect types are used to describe google.protobuf enums
2 participants