(self, values)
Some values are returned as Choice objects which need to be converted to
        dicts to be displayed properly
Some values are returned as Choice objects which need to be converted to
        dicts to be displayed properly
Some values are returned as Choice objects which need to be converted to dicts to be displayed properly
def _format_values_for_display(self, values):
        """Some values are returned as Choice objects which need to be converted to
        dicts to be displayed properly
        """
        if values:
            return [
                dict(value._asdict()) if isinstance(value, Choice) else value
                for value in values
            ]
def _format_values_for_display ( self , values ) : if values : return [ dict ( value . _asdict ( ) ) if isinstance ( value , Choice ) else value for value in values ]