-
Notifications
You must be signed in to change notification settings - Fork 229
Error on accessing unset optional field #523
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
Comments
Related to #499 |
cetanu
pushed a commit
that referenced
this issue
Oct 16, 2023
cetanu
pushed a commit
that referenced
this issue
Oct 16, 2023
cetanu
pushed a commit
that referenced
this issue
Oct 16, 2023
bbonenfant
pushed a commit
to pachyderm/python-betterproto
that referenced
this issue
Jan 23, 2024
bbonenfant
pushed a commit
to pachyderm/python-betterproto
that referenced
this issue
Jan 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On main branch, the proto message
is compiled to
Now both Foo().a and Foo(a=None).a raises the same
AttributeError: '_a' is set to None, not 'a'
. This is probably unwanted behavior?It seems to be fixed by removing the term
group="_a"
manually. Is there a reason to set the group in this case in the first place?The text was updated successfully, but these errors were encountered: