You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/tmp/generated_code.py", line 7, in <module>
class Demo(AvroModel):
File "/tmp/generated_code.py", line 8, in Demo
foo: decimal.Decimal = types.Decimal(scale=3, precision=10)
^^^^^
NameError: name 'types' is not defined. Did you mean: 'type'?
Expected behavior
Loadable code without the NameError.
The text was updated successfully, but these errors were encountered:
Describe the bug
Code generated by the
ModelGenerator
for schemas containing a decimal logical type field cannot run due to a missing import.To Reproduce
Expected behavior
Loadable code without the
NameError
.The text was updated successfully, but these errors were encountered: