d = JointData([2.1, 3.2])
print(d.SerializeToString()) # right
x = np.random.randn(2, 3).tolist()
y = KpsResponse(body_data=x)
print(y.SerializeToString()) # error
Expected Results
successfully serialized
Actual Results
TypeError: 'float' object cannot be interpreted as an integer
System Information
libprotoc 24.3
python 3.7.13
betterproto 2.0.0b6
Checklist
[X] I have searched the issues for duplicates.
[X] I have shown the entire traceback, if possible.
[X] I have verified this issue occurs on the latest prelease of betterproto which can be installed using pip install -U --pre betterproto, if possible.
This wouldn't be supported by the google implementation and won't be by betterproto as you are violating the types required to be passed. Instead of passing a list pass an instance of JointData to body_data
Summary
SerializeToString Error for
List of List
Reproduction Steps
kps.proto
run
Expected Results
successfully serialized
Actual Results
TypeError: 'float' object cannot be interpreted as an integer
System Information
libprotoc 24.3 python 3.7.13 betterproto 2.0.0b6
Checklist
pip install -U --pre betterproto
, if possible.