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
{{ message }}
Repository navigation
Literal types not validated when loading from YAML #321
We're running into an issue where if we convert the dataclass object into a dict after reading it and then attempt to convert that dict into an object again with simple_parsing.helpers.serialization.serializable.from_dict(), we see the exception we expected to see earlier
Activity
lebrice commentedon Aug 15, 2024
Hey there @danny-schwartz-brt , thanks for raising the issue.
This is interesting. I believe this is supposed to work, this might be a bug.
danny-schwartz-brt commentedon Aug 15, 2024
We're running into an issue where if we convert the dataclass object into a dict after reading it and then attempt to convert that dict into an object again with
simple_parsing.helpers.serialization.serializable.from_dict(), we see the exception we expected to see earlierlebrice commentedon Sep 6, 2024
Hey @danny-schwartz-brt, have you tried using something like
pydanticfor the validation ?