Add comparison operator to python objects under --gen-compare option
When --gen-compare is selected this will add a comparison operator to the python classes created when the --gen-object-api is selected. This gives the expected behavior of working object comparisons in the generated code.
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
I would greatly appreciate if this could receive some attention, so that I can move off my fork for my organizations upstream project. While I realize that it is not recommend to use the object API and as such this isn't a priority, this does add expected behavior for the python generated code.
Hi @Alex-Ratcliffe , I think it needs some tests
Hi @Alex-Ratcliffe , I think it needs some tests
Yes Tests would be ideal, but it seems like the generated code is pretty obvious. Can you follow up with the typo and add tests in a follow up PR?