Skip to content

Fix template bug resulting in empty __post_init__ methods #162

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

Merged
merged 2 commits into from
Apr 1, 2021

Conversation

nat-n
Copy link
Collaborator

@nat-n nat-n commented Oct 19, 2020

Also run poe generate_lib so generated code benefits.

This is done on top of #161 so that the changes combine properly, but the two could easily be rebased for a different merge order.

@nat-n nat-n requested review from cetanu and danielgtaylor October 23, 2020 13:28
cetanu
cetanu previously approved these changes Oct 23, 2020
@nat-n nat-n assigned nat-n and unassigned nat-n Nov 25, 2020
@nat-n nat-n added the bug Something isn't working label Nov 25, 2020
@nat-n nat-n mentioned this pull request Dec 8, 2020
@nat-n nat-n force-pushed the use_betterproto branch from 2ea7e44 to 6f1754e Compare March 31, 2021 21:48
Base automatically changed from use_betterproto to master March 31, 2021 22:49
@cetanu cetanu dismissed their stale review March 31, 2021 22:49

The base branch was changed.

This means the betterproto plugin no longer needs to depend durectly on
protobuf.

This requires a small runtime hack to monkey patch some google types to
get around the fact that the compiler uses proto2, but betterproto
expects proto3.

Also:
- regenerate google.protobuf package
- fix a regex bug in the logic for determining whether to use a google
  wrapper type.
- fix a bug causing comments to get mixed up when multiple proto files
  generate code into a single python module
@nat-n nat-n force-pushed the empty_post_init branch 2 times, most recently from a68f3c7 to 077efa8 Compare April 1, 2021 18:33
@nat-n nat-n force-pushed the empty_post_init branch from 077efa8 to 8323683 Compare April 1, 2021 18:35
@nat-n
Copy link
Collaborator Author

nat-n commented Apr 1, 2021

Rebased and ready for review!

@Gobot1234
Copy link
Collaborator

Apart from the random pitted json test thing LGTM.

@cetanu cetanu merged commit bb646fe into master Apr 1, 2021
@cetanu cetanu deleted the empty_post_init branch April 1, 2021 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants