| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…ng is not consecutive
| if field_is_repeated: | ||
| enum_class = field_type.__args__[0] | ||
| if isinstance(value, typing.Iterable): | ||
| output[cased_name] = [ | ||
| enum_class(element).name for element in value | ||
| ] | ||
| else: | ||
| warnings.warn( | ||
| f"Non-iterable value for repeated enum field {field_name}" | ||
| ) |
There was a problem hiding this comment.
The actual fix is here ☝️
Sorry, something went wrong.
…ive (danielgtaylor#102) Fixes danielgtaylor#93 to_dict returns wrong enum fields when numbering is not consecutive
|
Thanks for this bug fix! I just ran into this myself and it took me a while to realize the fix was available in version 2. Any when this will come out of beta? |
Sorry, something went wrong.
No but if you want this fix install betterproto==2.0.0b2 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
closes #93