def _cast_to_type ( self , value ) : if isinstance ( value , str ) or value is None : return value return str ( value )
how to convertt none type to string in python
Convert the value to its string representation
def _cast_to_type(self, value):
        """ Convert the value to its string representation"""
        if isinstance(value, str) or value is None:
            return value
        return str(value)