def __init__(self, value=None, param_type=None):
        """ Creates procedure output parameter.

        :param param_type: either sql type declaration or python type
        :param value: value to pass into procedure
        """
        if param_type is None:
            if value is None or value is default:
                raise ValueError('Output type cannot be autodetected')
        elif isinstance(param_type, type) and value is not None:
            if value is not default and not isinstance(value, param_type):
                raise ValueError('value should match param_type, value is {}, param_type is \'{}\''.format(repr(value), param_type.__name__))
        self._type = param_type
        self._value = value
def __init__ ( self , value = None , param_type = None ) : if param_type is None : if value is None or value is default : raise ValueError ( 'Output type cannot be autodetected' ) elif isinstance ( param_type , type ) and value is not None : if value is not default and not isinstance ( value , param_type ) : raise ValueError ( 'value should match param_type, value is {}, param_type is \'{}\'' . format ( repr ( value ) , param_type . __name__ ) ) self . _type = param_type self . _value = value
Creates procedure output parameter.

        :param param_type: either sql type declaration or python type
        :param value: value to pass into procedure