(self, s)
Convert a value, given as an instance of an arbitrary type, to a float.
Convert a value, given as an instance of an arbitrary type, to a float.
Convert a value given as an instance of an arbitrary type to a float .
def to_val(self, s):
        """
        Convert a value, given as an instance of an arbitrary type, to a float.
        """
        if isinstance(s, str):
            return self.parse(s)
        else:
            return super().to_val(s)
def to_val ( self , s ) : if isinstance ( s , str ) : return self . parse ( s ) else : return super ( ) . to_val ( s )