Indirect recursive message - RecursionError: maximum recursion depth hit on encoding initial default values #13
Labels
bug
Something isn't working
help wanted
Extra attention is needed
medium
Medium effort issue, can fit in a single PR
Milestone
Hi there,
I really prefer the betterproto probuf output to Google's, so well done on that! I've come across the following issue, and narrowed it down to the simplest proto I can to reproduce.
Initialising the following proto, (after compiling with python-betterproto)
with a simple
test = schemas.Action()
is causing recursion and a failure to create the test object. It looks as far as I can tell that its attempting to work out the default values for the initial proto.
When the proto definition is changed to
then the recursion error does not occur.
The standard 'protoc --python_out=' does not exhibit this behaviour, hence I thought I'd raise this.
cheers
Nick
The text was updated successfully, but these errors were encountered: