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
Dictionaries are nice data types but they are not very well specialized for this purpose I feel, I wanna ask why there is not an option (or why it didn't become the default) to use data classes as the return type of questionary form?
Describe the solution
I guess it's pretty simple to implement it as a form option to return its data as a data class? if it matches zen of this project I guess I can work on it.
Alternatives considered
well, alternative is the already implemented approach so, Null :)
The text was updated successfully, but these errors were encountered:
Hey @aarmn that is a really good point - I guess reasons are pretty simple, it is based on inquirer and it used to be simple objects there (plus, dataclasses were not a thing when we started this 😉 ). We'd need to drop 3.6 support, but that is alright it is out of life now anyways.
I do like the idea, it could provide a cleaner interface. How about you create an example on how that would look like in terms of user experience for someone using questionary and then we decide based on that? I could see this justifying a breaking change.
Describe the problem
Dictionaries are nice data types but they are not very well specialized for this purpose I feel, I wanna ask why there is not an option (or why it didn't become the default) to use data classes as the return type of questionary form?
Describe the solution
I guess it's pretty simple to implement it as a form option to return its data as a data class? if it matches zen of this project I guess I can work on it.
Alternatives considered
well, alternative is the already implemented approach so, Null :)
The text was updated successfully, but these errors were encountered: