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
However this obviously doesn't work since schema doesn't have the test_date and I do not know how to add it to it? Does anyone have a good suggestion? (Is there a way to combine 2 schemas into 1 and then use that for the merge?
The end result should be that I have an object where test_date should actually be a datetime object such that I can pass the entire configuration object as keyword input to my function.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a dataclass that specifies the data types in my yaml config file, but I wish to include a datetime somehow.
My yaml looks something like this:
My dataclass looks something like this:
And finally I wish to somehow put it all together:
However this obviously doesn't work since schema doesn't have the test_date and I do not know how to add it to it? Does anyone have a good suggestion? (Is there a way to combine 2 schemas into 1 and then use that for the merge?
The end result should be that I have an object where test_date should actually be a datetime object such that I can pass the entire configuration object as keyword input to my function.
Beta Was this translation helpful? Give feedback.
All reactions