decode_hinted_tuple

SupplementDetectionDataDecoder.decode_hinted_tuple(item)[source]

Decode a tuple.

JSON doesn’t support tuples. Use a custom dictionary to decode. If the dictionary contains the __tuple__ attribute, the dictionary is converted to a tuple.

Parameters

item (dict) – The dictionary to decode.

Returns

item – The object representation of the item dictionary.

Return type

object