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
When importing datamodel_code_generator, the behaviour of pyyaml is changed after the import, datetime objects suddenly are deserialized from yaml as str whereas before they were deserialized as datetime objects.
When importing
datamodel_code_generator
, the behaviour ofpyyaml
is changed after the import, datetime objects suddenly are deserialized from yaml asstr
whereas before they were deserialized asdatetime
objects.Steps to reproduce:
create clean venv
Run this reproducer with the interpreter from the venv
Actual output: (time string + object may change depending on run time)
Expected output: (time string + object may change depending on run time):
The reason seems to be that the SafeLoader of
yaml
is modified globally bydatamodel-code-generator
datamodel-code-generator/datamodel_code_generator/util.py
Line 72 in acc6bf6
The text was updated successfully, but these errors were encountered: