(value)
return value
Check if given value is a rect shape and return it.
Check if given value is a rect shape and return it.
Check if given value is a rect shape and return it .
def is_rect(value):
    """Check if given value is a rect shape and return it."""
    try:
        value = parser.rect(value)
    except ValueError:
        raise ValidationError('Value {value} is not a rect shape'.format(value=value))

    return value
def is_rect ( value ) : try : value = parser . rect ( value ) except ValueError : raise ValidationError ( 'Value {value} is not a rect shape' . format ( value = value ) ) return value