Closed InsertCreativityHere closed 7 months ago
Currently, in the decoding logic, we use a mix of casts and as conversions. (Casts for decoding sequences, and as for dictionaries and results).
as
This PR changes the latter two to also use casts. And in the process, consolidates this logic into a new function: decode_type_with_cast.
decode_type_with_cast
Currently, in the decoding logic, we use a mix of casts and
as
conversions. (Casts for decoding sequences, andas
for dictionaries and results).This PR changes the latter two to also use casts. And in the process, consolidates this logic into a new function:
decode_type_with_cast
.