Gracefully handle encoding of different number types #84
Labels
bug
Something isn't working
good first issue
Good for newcomers
high priority
small
Low effort issue that can easily be picked up
Milestone
If a float is set on a Message field of type int then an exception is raised when serialising. Floats and ints are largely interchangeable in python3, so maybe betterproto should handle this more gracefully, by for example: casting to int or float as appropriate before encoding.
The resulting error message includes:
The text was updated successfully, but these errors were encountered: