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
Introduce custom types that inherit from the generated model's base types and add accessor logic to get the (Pint) Quantity representation of these base types.
i have a very basic question. The extender approach sounds like a smooth way to implement these conversions. I"m curious how this compares to returning the distance in quantities via a validator for each attr that forces the conversion when the model is populated. I have a few guesses as to why the extender is better but wanted to get your feedback!
perhaps involving typing and type overrides or
perhaps it would make the overall code base more complex having so many validators?
Or finally perhaps it allows other users who may want to raw response values to convert as they please + the quantity conversions that are so nice to have in place.
Quantity
representation of these base types.Depends on #498
The text was updated successfully, but these errors were encountered: