Closed richard-scott closed 2 years ago
This is because python-minifier is removing annotations, which pydantic needs to work.
You can disable the removal of annotations by passing --no-remove-annotations
to the pyminify command, or setting remove_annotations=False
when calling python_minifier.minify()
Yes, that does the trick 👍
When trying to minify pydantic code and run it, this causes errors. When running the example available here I get the following output after minification.